Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oplantalech committed Oct 31, 2024
1 parent c2cbb82 commit f3f08fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit_tests_validate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2023,9 +2023,15 @@ def test_missing_values(self):
self.logger.setLevel(logging.ERROR)
record_list = self.validate('data_structural_variants_missing_values.txt',
validateData.StructuralVariantValidator)
self.assertEqual(2, len(record_list))
self.assertEqual(3, len(record_list))
record_iterator = iter(record_list)

# Expected first error due to a SV_Status being empty
record = next(record_iterator)
self.assertEqual(logging.ERROR, record.levelno)
self.assertEqual(3, record.line_number)
self.assertIn("Invalid SV_Status value: possible values are [SOMATIC, GERMLINE]", record.message)

# Expected ERROR message due to missing Entrez gene id and/or gene symbol at site 1 and site 2
record = next(record_iterator)
self.assertEqual(logging.ERROR, record.levelno)
Expand Down

0 comments on commit f3f08fb

Please sign in to comment.