From fa7c3459773c747ca37a6a978fce4d283c5640db Mon Sep 17 00:00:00 2001 From: Meghann Cunningham Date: Wed, 25 Jan 2023 18:57:35 +0000 Subject: [PATCH] fix in test file --- tests/pytests/unit/modules/test_saltcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pytests/unit/modules/test_saltcheck.py b/tests/pytests/unit/modules/test_saltcheck.py index 750fc14694a..cda7773b54c 100644 --- a/tests/pytests/unit/modules/test_saltcheck.py +++ b/tests/pytests/unit/modules/test_saltcheck.py @@ -3,7 +3,7 @@ import pytest import salt.modules.saltcheck as saltcheck from tests.support.mock import MagicMock -xmldiff = pytest.importorskip("xmldiff") +xmldiff = pytest.importorskip("xmldiff.main") @pytest.fixture() @@ -39,5 +39,5 @@ def test__generate_junit_out_list(): + """\t\n\n""" ) ret = saltcheck._generate_junit_out_list(results) - diff = xmldiff.main.diff_texts(ret, expected) + diff = xmldiff.diff_texts(ret, expected) assert diff == []