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/docx/uris_tests.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/docx/uris_tests.py') diff --git a/tests/docx/uris_tests.py b/tests/docx/uris_tests.py index 6b9c264..298a40a 100644 --- a/tests/docx/uris_tests.py +++ b/tests/docx/uris_tests.py @@ -1,18 +1,15 @@ -from nose.tools import istest, assert_equal - from mammoth.docx.uris import uri_to_zip_entry_name +from ..testing import assert_equal -@istest -def when_path_does_not_have_leading_slash_then_path_is_resolved_relative_to_base(): +def test_when_path_does_not_have_leading_slash_then_path_is_resolved_relative_to_base(): assert_equal( "one/two/three/four", uri_to_zip_entry_name("one/two", "three/four"), ) -@istest -def when_path_has_leading_slash_then_base_is_ignored(): +def test_when_path_has_leading_slash_then_base_is_ignored(): assert_equal( "three/four", uri_to_zip_entry_name("one/two", "/three/four"), -- cgit v1.2.3