Change pytest fixture scope from core fixtures (#104831)
This commit is contained in:
parent
1273bc8ec4
commit
7ec2980e52
3 changed files with 4 additions and 4 deletions
|
@ -383,7 +383,7 @@ def reset_hass_threading_local_object() -> Generator[None, None, None]:
|
|||
ha._hass.__dict__.clear()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def bcrypt_cost() -> Generator[None, None, None]:
|
||||
"""Run with reduced rounds during tests, to speed up uses."""
|
||||
import bcrypt
|
||||
|
@ -1544,7 +1544,7 @@ async def mock_enable_bluetooth(
|
|||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture(scope="session")
|
||||
def mock_bluetooth_adapters() -> Generator[None, None, None]:
|
||||
"""Fixture to mock bluetooth adapters."""
|
||||
with patch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue