- seems
tmp_path for (some) unit tests stopped working and unit tests are storing their content to the default location - ./storage
- possibly something is wrong with this fixture:
# To isolate the tests, we need to reset the used singletons before each test case
# We also set the MemoryStorageClient to use a temp path
@pytest.fixture(autouse=True)
def _reset_and_patch_default_instances(
monkeypatch: pytest.MonkeyPatch,
tmp_path: Path,
reset_default_instances: Callable[[], None],
) -> None:
reset_default_instances()
# This forces the MemoryStorageClient to use tmp_path for its storage dir
monkeypatch.setenv('CRAWLEE_LOCAL_STORAGE_DIR', str(tmp_path))
tmp_pathfor (some) unit tests stopped working and unit tests are storing their content to the default location -./storage