diff --git a/requirements-test.txt b/requirements-test.txt index 9c23fb1a93f835bb7458ce363b15e3f633bd9698..319374d3410dbcef7c4d7c9ace1326fd0f47b2c1 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,9 +1,10 @@ -pytest +attrs dulwich >= 0.18.7 +pytest +pytest-mock swh.loader.core swh.loader.git >= 0.8 swh.storage[testing] -pytest-mock types-click types-python-dateutil types-pyyaml diff --git a/swh/vault/tests/test_cookers.py b/swh/vault/tests/test_cookers.py index 48f53cc2672442e72653bfb9a35994d79bff410c..66543808b9ba42d624328c07bfbd7679e0d33ac3 100644 --- a/swh/vault/tests/test_cookers.py +++ b/swh/vault/tests/test_cookers.py @@ -17,7 +17,7 @@ import tempfile import unittest import unittest.mock -import attrs +import attr import dulwich.fastexport import dulwich.index import dulwich.objects @@ -442,7 +442,7 @@ class TestDirectoryCooker: # alter the content of the storage # 1/ make file 2 an hidden file object loader.storage._allow_overwrite = True - cnt2 = attrs.evolve( + cnt2 = attr.evolve( loader.storage.content_get([id_2])[0], status="hidden", data=file_2 ) loader.storage.content_add([cnt2]) @@ -826,7 +826,7 @@ class RepoFixtures: # alter the content of the storage # 1/ make file 2 an hidden file object loader.storage._allow_overwrite = True - cnt2 = attrs.evolve( + cnt2 = attr.evolve( loader.storage.content_get([id_2])[0], status="hidden", data=file_2 ) loader.storage.content_add([cnt2])