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/office_xml_tests.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/docx/office_xml_tests.py') diff --git a/tests/docx/office_xml_tests.py b/tests/docx/office_xml_tests.py index 5b8b1e1..f87fa75 100644 --- a/tests/docx/office_xml_tests.py +++ b/tests/docx/office_xml_tests.py @@ -2,13 +2,11 @@ from __future__ import unicode_literals import io -from nose.tools import istest, assert_equal - from mammoth.docx import xmlparser as xml, office_xml +from ..testing import assert_equal -@istest -def alternate_content_is_replaced_by_contents_of_fallback(): +def test_alternate_content_is_replaced_by_contents_of_fallback(): xml_string = ( '' + '' + @@ -21,6 +19,6 @@ def alternate_content_is_replaced_by_contents_of_fallback(): '' + '' + '') - + result = office_xml.read(io.StringIO(xml_string)) assert_equal([xml.element("fallback")], result.children) -- cgit v1.2.3