From ca71a59eda6f516765010111574e803630b492ec Mon Sep 17 00:00:00 2001 From: David Douard <david.douard@sdfa3.org> Date: Thu, 4 Aug 2022 16:22:26 +0200 Subject: [PATCH] Use original attr module instead of attrs because this later is not yet available on debian, and we do not use new API features anyway in test_cookers.py Should fix deb packaging. --- requirements-test.txt | 5 +++-- swh/vault/tests/test_cookers.py | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/requirements-test.txt b/requirements-test.txt index 9c23fb1..319374d 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 48f53cc..6654380 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]) -- GitLab