Browse Source

fix clearing of screenshot before running tests

Rodja Trappe 2 năm trước cách đây
mục cha
commit
5760bd7183
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/conftest.py

+ 1 - 1
tests/conftest.py

@@ -47,7 +47,7 @@ def reset_globals() -> Generator[None, None, None]:
     importlib.reload(globals)
 
 
-@pytest.fixture(scope='session')
+@pytest.fixture(scope='session', autouse=True)
 def remove_all_screenshots() -> None:
     for name in os.listdir(Screen.SCREENSHOT_DIR):
         os.remove(os.path.join(Screen.SCREENSHOT_DIR, name))