mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Merge remote-tracking branch 'upstream/dev' into integration
This commit is contained in:
		| @@ -18,7 +18,8 @@ def test_gpio_binary_sensor_basic_setup( | ||||
|  | ||||
|     assert "new gpio::GPIOBinarySensor();" in main_cpp | ||||
|     assert "App.register_binary_sensor" in main_cpp | ||||
|     assert "bs_gpio->set_use_interrupt(true);" in main_cpp | ||||
|     # set_use_interrupt(true) should NOT be generated (uses C++ default) | ||||
|     assert "bs_gpio->set_use_interrupt(true);" not in main_cpp | ||||
|     assert "bs_gpio->set_interrupt_type(gpio::INTERRUPT_ANY_EDGE);" in main_cpp | ||||
|  | ||||
|  | ||||
| @@ -51,8 +52,8 @@ def test_gpio_binary_sensor_esp8266_other_pins_use_interrupt( | ||||
|         "tests/component_tests/gpio/test_gpio_binary_sensor_esp8266.yaml" | ||||
|     ) | ||||
|  | ||||
|     # GPIO5 should still use interrupts | ||||
|     assert "bs_gpio5->set_use_interrupt(true);" in main_cpp | ||||
|     # GPIO5 should still use interrupts (default, so no setter call) | ||||
|     assert "bs_gpio5->set_use_interrupt(true);" not in main_cpp | ||||
|     assert "bs_gpio5->set_interrupt_type(gpio::INTERRUPT_ANY_EDGE);" in main_cpp | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -152,6 +152,14 @@ def test_main_all_tests_should_run( | ||||
|     assert output["memory_impact"]["should_run"] == "false" | ||||
|     assert output["cpp_unit_tests_run_all"] is False | ||||
|     assert output["cpp_unit_tests_components"] == ["wifi", "api", "sensor"] | ||||
|     # component_test_batches should be present and be a list of space-separated strings | ||||
|     assert "component_test_batches" in output | ||||
|     assert isinstance(output["component_test_batches"], list) | ||||
|     # Each batch should be a space-separated string of component names | ||||
|     for batch in output["component_test_batches"]: | ||||
|         assert isinstance(batch, str) | ||||
|         # Should contain at least one component (no empty batches) | ||||
|         assert len(batch) > 0 | ||||
|  | ||||
|  | ||||
| def test_main_no_tests_should_run( | ||||
| @@ -209,6 +217,9 @@ def test_main_no_tests_should_run( | ||||
|     assert output["memory_impact"]["should_run"] == "false" | ||||
|     assert output["cpp_unit_tests_run_all"] is False | ||||
|     assert output["cpp_unit_tests_components"] == [] | ||||
|     # component_test_batches should be empty list | ||||
|     assert "component_test_batches" in output | ||||
|     assert output["component_test_batches"] == [] | ||||
|  | ||||
|  | ||||
| def test_main_with_branch_argument( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user