From afe9e81c94b310bc11f3aebf8ca02811bf293e7b Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Thu, 4 Jan 2024 23:32:54 -0500 Subject: [PATCH] Update to_xml_string to to_xml_report_string to fix deprecation warning --- mutmut/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mutmut/cache.py b/mutmut/cache.py index 03c1cf39..4b2ca40c 100644 --- a/mutmut/cache.py +++ b/mutmut/cache.py @@ -11,7 +11,7 @@ from typing import Tuple -from junit_xml import TestSuite, TestCase +from junit_xml import TestSuite, TestCase, to_xml_report_string from pony.orm import Database, Required, db_session, Set, Optional, select, \ PrimaryKey, RowNotFound, ERDiagramError, OperationalError @@ -255,7 +255,7 @@ def create_junitxml_report(dict_synonyms, suspicious_policy, untested_policy): test_cases.append(tc) ts = TestSuite("mutmut", test_cases) - return TestSuite.to_xml_string([ts]) + return to_xml_report_string([ts]) @init_db