diff --git a/requirements-test.txt b/requirements-test.txt --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1 +1 @@ -nose +pytest diff --git a/swh/archiver/tests/test_archiver.py b/swh/archiver/tests/test_archiver.py --- a/swh/archiver/tests/test_archiver.py +++ b/swh/archiver/tests/test_archiver.py @@ -10,7 +10,7 @@ import tempfile import unittest -from nose.plugins.attrib import attr +import pytest from swh.archiver import (ArchiverWithRetentionPolicyDirector, ArchiverWithRetentionPolicyWorker) @@ -22,7 +22,7 @@ from swh.archiver.tests import SQL_DIR -@attr('db') +@pytest.mark.db class TestArchiver(SingleDbTestFixture, unittest.TestCase): """ Test the objstorage archiver. """ diff --git a/swh/archiver/tests/test_checker.py b/swh/archiver/tests/test_checker.py --- a/swh/archiver/tests/test_checker.py +++ b/swh/archiver/tests/test_checker.py @@ -7,7 +7,7 @@ import tempfile import unittest -from nose.plugins.attrib import attr +import pytest from swh.archiver.checker import RepairContentChecker from swh.model import hashutil @@ -29,7 +29,7 @@ raise ObjNotFoundError(obj_id) -@attr('fs') +@pytest.mark.fs class TestRepairChecker(unittest.TestCase): """ Test the content integrity checker """