mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Bump pytest to 7.0.0 (#65981)
This commit is contained in:
@@ -26,14 +26,14 @@ TEST_BAD_SERIALIED = "THIS IS NOT JSON\n"
|
||||
TMP_DIR = None
|
||||
|
||||
|
||||
def setup():
|
||||
"""Set up for tests."""
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup_and_teardown():
|
||||
"""Clean up after tests."""
|
||||
global TMP_DIR
|
||||
TMP_DIR = mkdtemp()
|
||||
|
||||
yield
|
||||
|
||||
def teardown():
|
||||
"""Clean up after tests."""
|
||||
for fname in os.listdir(TMP_DIR):
|
||||
os.remove(os.path.join(TMP_DIR, fname))
|
||||
os.rmdir(TMP_DIR)
|
||||
|
||||
Reference in New Issue
Block a user