Description: Add patch to port tests to pytest
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-12-04
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,6 @@
   - PYTHONHASHSEED=0
 install:
   - pip install .
-  - pip install nose
+  - pip install pytest
   - pip install Sphinx
 script: "make tests"
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@
                'bin/gfapy-renumber',
                'bin/gfapy-validate'],
       zip_safe=False,
-      test_suite="nose.collector",
+      test_suite="pytest.collect",
       include_package_data=True,
-      tests_require=['nose'],
+      tests_require=['pytest'],
     )
--- a/tests/test_api_rgfa.py
+++ b/tests/test_api_rgfa.py
@@ -25,8 +25,8 @@
 
   def test_stable_sequence_names(self):
     g = gfapy.Gfa.from_file("tests/testdata/rgfa_example.2.gfa", dialect="rgfa")
-    self.assertEqual(['smpl-Ref.Bd4', 'smpl-Bd21_3_r.pseudomolecule_4'],
-        g.stable_sequence_names)
+    self.assertEqual(['smpl-Bd21_3_r.pseudomolecule_4', 'smpl-Ref.Bd4'],
+        sorted(g.stable_sequence_names))
     g = gfapy.Gfa.from_file("tests/testdata/rgfa_example.1.gfa", dialect="rgfa")
-    self.assertEqual(['bar', 'foo', 'chr1'],
-        g.stable_sequence_names)
+    self.assertEqual(['bar', 'chr1', 'foo'],
+        sorted(g.stable_sequence_names))
