diff options
| author | Michael Williamson <mike@zwobble.org> | 2022-11-25 22:50:05 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2022-11-25 22:58:16 +0000 |
| commit | 5093d72b9fece1a7c3d7a3d19e4161387ee6475a (patch) | |
| tree | c4122b0f72c7864897d78333e75328ac8c22685b /tests/docx/relationships_xml_tests.py | |
| parent | 20e3e61530bef546058124c3015ae240733cc974 (diff) | |
Use pytest instead of nose
Diffstat (limited to 'tests/docx/relationships_xml_tests.py')
| -rw-r--r-- | tests/docx/relationships_xml_tests.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/docx/relationships_xml_tests.py b/tests/docx/relationships_xml_tests.py index 5e52142..2c5b6ce 100644 --- a/tests/docx/relationships_xml_tests.py +++ b/tests/docx/relationships_xml_tests.py @@ -1,11 +1,9 @@ -from nose.tools import istest, assert_equal - from mammoth.docx.xmlparser import element as xml_element from mammoth.docx.relationships_xml import read_relationships_xml_element +from ..testing import assert_equal -@istest -def relationship_targets_can_be_found_by_id(): +def test_relationship_targets_can_be_found_by_id(): element = xml_element("relationships:Relationships", {}, [ xml_element("relationships:Relationship", { "Id": "rId8", @@ -25,8 +23,7 @@ def relationship_targets_can_be_found_by_id(): ) -@istest -def relationship_targets_can_be_found_by_type(): +def test_relationship_targets_can_be_found_by_type(): element = xml_element("relationships:Relationships", {}, [ xml_element("relationships:Relationship", { "Id": "rId2", @@ -51,8 +48,7 @@ def relationship_targets_can_be_found_by_type(): ) -@istest -def when_there_are_no_relationships_of_requested_type_then_empty_list_is_returned(): +def test_when_there_are_no_relationships_of_requested_type_then_empty_list_is_returned(): element = xml_element("relationships:Relationships", {}, []) relationships = read_relationships_xml_element(element) assert_equal( |
