Skip to content

Commit 9ba4474

Browse files
SCANPY-237 Improved precision in one test.
1 parent 84f231d commit 9ba4474

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/unit/test_dry_run.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ def test_validate_report_binary_content(self):
252252

253253
result = CoverageReportValidator.validate_coverage_reports("coverage.xml", "/project")
254254

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)
255+
self.assertTrue(result.is_valid())
256+
self.assertEqual(len(result.warnings), 1)
257+
self.assertIn("binary format", result.warnings[0])
258+
self.assertEqual(len(result.errors), 0)
258259

259260
def test_validate_mixed_valid_and_missing_reports(self):
260261
self.fs.create_dir("/project")

0 commit comments

Comments
 (0)