mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
[socket] Rename the filter test so pytest collection stays unique
The bare test_init module name collided with the external components test; the both defines case now also checks the resolver stays in the build.
This commit is contained in:
+3
-1
@@ -23,7 +23,9 @@ def test_helper_files_filtered_until_required() -> None:
|
||||
Define("USE_SOCKET_IPV4_RESOLVE"),
|
||||
Define("USE_SOCKET_TCP_CLIENT_LINK"),
|
||||
}
|
||||
assert "tcp_client_link.cpp" not in socket.FILTER_SOURCE_FILES()
|
||||
filtered = socket.FILTER_SOURCE_FILES()
|
||||
assert "ipv4_resolve.cpp" not in filtered
|
||||
assert "tcp_client_link.cpp" not in filtered
|
||||
|
||||
|
||||
def test_require_tcp_client_link_pulls_in_the_resolver() -> None:
|
||||
Reference in New Issue
Block a user