From 5093d72b9fece1a7c3d7a3d19e4161387ee6475a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 25 Nov 2022 22:50:05 +0000 Subject: Use pytest instead of nose --- tests/testing.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/testing.py') 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 - + -- cgit v1.2.3