Description: Migrate test from nose to unittest
Author: Nick Morrott <nickm@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018658
Forwarded: not-needed
Last-Update: 2024-02-11
---
--- a/valinor/test/test_exporter.py
+++ b/valinor/test/test_exporter.py
@@ -12,12 +12,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from nose.tools import *
+from unittest import TestCase
 
 from project_generator.tools.tool import Builder
 
-# Makes sure that exporting using generic builder will fail.
-@raises(NotImplementedError)
-def test_exporter_location():
-    b = Builder()
-    b.build_project()
+class TestExporter(TestCase):
+
+    # Makes sure that exporting using generic builder will fail.
+    def test_exporter_location(self):
+        with self.assertRaises(NotImplementedError):
+            b = Builder()
+            b.build_project()
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@
             "valinor=valinor:main",
         ],
     },
-    test_suite = 'nose.collector',
+    test_suite = 'test',
     install_requires=[
         'setuptools',
         'colorama>=0.3',
@@ -44,6 +44,5 @@
         'pyelftools>=0.23',
     ],
     tests_require=[
-        'nose',
     ]
 )
