aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-11-25 22:50:05 +0000
committerMichael Williamson <mike@zwobble.org>2022-11-25 22:58:16 +0000
commit5093d72b9fece1a7c3d7a3d19e4161387ee6475a (patch)
treec4122b0f72c7864897d78333e75328ac8c22685b /tests/testing.py
parent20e3e61530bef546058124c3015ae240733cc974 (diff)
Use pytest instead of nose
Diffstat (limited to 'tests/testing.py')
-rw-r--r--tests/testing.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/testing.py b/tests/testing.py
index c5013dc..e75d630 100644
--- a/tests/testing.py
+++ b/tests/testing.py
@@ -1,18 +1,21 @@
import os
-from nose.tools import nottest
+from precisely import assert_that, equal_to
-@nottest
-def test_path(path):
+def generate_test_path(path):
this_dir = os.path.dirname(__file__)
return os.path.join(this_dir, "test-data", path)
+def assert_equal(expected, actual):
+ assert_that(actual, equal_to(expected))
+
+
def assert_raises(exception, func):
try:
func()
assert False, "Expected " + exception.__name__
except exception as error:
return error
-
+