mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Fix Axis tests affecting other tests (#122857)
This commit is contained in:
parent
c8372a3aa5
commit
224228e448
@ -128,6 +128,13 @@ def fixture_config_entry_options() -> MappingProxyType[str, Any]:
|
||||
# Axis API fixtures
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def reset_mock_requests() -> Generator[None]:
|
||||
"""Reset respx mock routes after the test."""
|
||||
yield
|
||||
respx.mock.clear()
|
||||
|
||||
|
||||
@pytest.fixture(name="mock_requests")
|
||||
def fixture_request(
|
||||
respx_mock: respx.MockRouter,
|
||||
|
Loading…
x
Reference in New Issue
Block a user