Skip to content

Commit

Permalink
Update to_xml_string to to_xml_report_string to fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jimrybarski committed Jan 5, 2024
1 parent 90ed55c commit afe9e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutmut/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit afe9e81

Please sign in to comment.