We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84f231d commit 9ba4474Copy full SHA for 9ba4474
1 file changed
tests/unit/test_dry_run.py
@@ -252,9 +252,10 @@ def test_validate_report_binary_content(self):
252
253
result = CoverageReportValidator.validate_coverage_reports("coverage.xml", "/project")
254
255
- has_unicode_warning = any("binary format" in w for w in result.warnings)
256
- has_xml_error = any("not valid XML" in e for e in result.errors)
257
- self.assertTrue(has_unicode_warning or has_xml_error)
+ self.assertTrue(result.is_valid())
+ self.assertEqual(len(result.warnings), 1)
+ self.assertIn("binary format", result.warnings[0])
258
+ self.assertEqual(len(result.errors), 0)
259
260
def test_validate_mixed_valid_and_missing_reports(self):
261
self.fs.create_dir("/project")
0 commit comments