Skip to content
Snippets Groups Projects
Commit a6a0f90b authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Use assert_diff over get_data and manual assert.

parent 727b3c9e
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ import pytest
from diffoscope.comparators.xml import XMLFile
from ..utils.data import load_fixture, get_data
from ..utils.data import load_fixture, assert_diff
xml_a = load_fixture("test1.xml")
......@@ -51,5 +51,4 @@ def differences(xml_a, xml_b):
sys.version_info < (3, 8), reason="requires Python 3.8 or higher"
)
def test_diff(differences):
expected_diff = get_data("test_xml_expected_diff")
assert differences[0].unified_diff == expected_diff
assert_diff(differences[0], "test_xml_expected_diff")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment