Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066455
D549.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D549.diff
View Options
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/model/tests/test_cli.py b/swh/model/tests/test_cli.py
--- a/swh/model/tests/test_cli.py
+++ b/swh/model/tests/test_cli.py
@@ -8,14 +8,14 @@
import unittest
from click.testing import CliRunner
-from nose.plugins.attrib import attr
+import pytest
from swh.model import cli
from swh.model.hashutil import hash_to_hex
from swh.model.tests.test_from_disk import DataMixin
-@attr('fs')
+@pytest.mark.fr
class TestIdentify(DataMixin, unittest.TestCase):
def setUp(self):
diff --git a/swh/model/tests/test_from_disk.py b/swh/model/tests/test_from_disk.py
--- a/swh/model/tests/test_from_disk.py
+++ b/swh/model/tests/test_from_disk.py
@@ -8,7 +8,7 @@
import tempfile
import unittest
-from nose.plugins.attrib import attr
+import pytest
from swh.model import from_disk
from swh.model.from_disk import Content, DentryPerms, Directory
@@ -685,7 +685,7 @@
+ 1)
-@attr('fs')
+@pytest.mark.fs
class TarballTest(DataMixin, unittest.TestCase):
def setUp(self):
super().setUp()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 9:41 AM (18 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217030
Attached To
D549: tests: use pytest instead of nose and other small test-related stuff
Event Timeline
Log In to Comment