diff --git a/requirements-test.txt b/requirements-test.txt --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ pytest dulwich >= 0.18.7 swh.loader.core -swh.loader.git >= 0.0.52 +swh.loader.git >= 0.8 swh.storage[testing] pytest-mock diff --git a/swh/vault/tests/test_cookers.py b/swh/vault/tests/test_cookers.py --- a/swh/vault/tests/test_cookers.py +++ b/swh/vault/tests/test_cookers.py @@ -124,28 +124,18 @@ @pytest.fixture -def swh_loader_config(swh_loader_config): - swh_loader_config["max_content_size"] = 100 * 1024 * 1024 - return swh_loader_config - - -@pytest.fixture -def git_loader( - swh_storage, swh_loader_config, -): +def git_loader(swh_storage,): """Instantiate a Git Loader using the storage instance as storage. """ def _create_loader(directory): - loader = GitLoaderFromDisk( + return GitLoaderFromDisk( + swh_storage, "fake_origin", directory=directory, visit_date=datetime.datetime.now(datetime.timezone.utc), - config=swh_loader_config, ) - loader.storage = swh_storage - return loader return _create_loader