1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
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',
]
)
|