Skip to content

Commit

Permalink
correct the unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
TannazVhdBMWExt committed Sep 27, 2024
1 parent 02a6620 commit cecd9f9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test-unit/lobster-coda/test_coda.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test_lobster_coda_separate_output_config(self):
component_test_lobster_items = component_test_lobster_file_dict.get('data')
self.assertIsNotNone(component_test_lobster_items)
self.assertIsInstance(component_test_lobster_items, list)
self.assertEqual(13, len(component_test_lobster_items))
self.assertEqual(9, len(component_test_lobster_items))

# just check a few refs from the written component test lobster items
expected_component_test_refs_dicts = {
Expand Down Expand Up @@ -374,7 +374,7 @@ def test_lobster_coda_separate_output_config(self):
other_test_lobster_items = other_test_lobster_file_dict.get('data')
self.assertIsNotNone(other_test_lobster_items)
self.assertIsInstance(other_test_lobster_items, list)
self.assertEqual(28, len(other_test_lobster_items))
self.assertEqual(32, len(other_test_lobster_items))

def test_test_case_parsing(self):
"""
Expand Down Expand Up @@ -431,19 +431,19 @@ def test_test_case_parsing(self):
{"suite": "RequirementTagTest1", "test_name": "RequirementsAsMultipleComments",
"req": ["CB-#0815", "CB-#0816", "CB-#0817", "CB-#0818", "CB-#0819", "CB-#0820"]},
{"suite": "RequirementTagTest2", "test_name": "URLRequirement",
"req": ["CB-#0815"]},
"req": []},
{"suite": "RequirementTagTest2", "test_name": "URLRequirementsCommaSeparated",
"req": ["CB-#0815", "CB-#0816"]},
"req": []},
{"suite": "RequirementTagTest2", "test_name": "URLRequirementsAsCommentsSpaceSeparated",
"req": ["CB-#0815", "CB-#0816"]},
"req": []},
{"suite": "RequirementTagTest2", "test_name": "MultipleURLRequirements",
"req": ["CB-#0815", "CB-#0816", "CB-#0817", "CB-#0818"]},
"req": []},
{"suite": "RequirementTagTest3", "test_name": "MixedRequirements",
"req": ["CB-#0816", "CB-#0815"]},
"req": ["CB-#0816"]},
{"suite": "RequirementTagTest4", "test_name": "InvalidRequirement",
"req": ['CB-#0815']},
"req": []},
{"suite": "RequirementTagTest4", "test_name": "MissingRequirementReference",
"req": ['CB-#0815']},
"req": []},
# Verify that the required-by tag is correctly parsed
{"suite": "RequirementByTest1", "test_name": "RequiredByWithAt",
"req_by": ["FOO0::BAR0"]},
Expand Down

0 comments on commit cecd9f9

Please sign in to comment.