Skip to content

Commit

Permalink
Add tests for target and kopts arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoppino committed Mar 27, 2024
1 parent 7598e12 commit bb6ac67
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_SystemListParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@ def test_systemListParserGroupItems(self):
self.assertTrue(self.date3 in systems)
self.assertEqual(self.system1, systems[self.date3][0].name)
self.assertEqual(self.system2, systems[self.date3][1].name)

def test_systemListParserTargetArgument(self):
self.parser._add_system(f"{self.system1},{self.date1},target1")
systems = self.parser.get_systems()
self.assertEqual("target1", systems[self.date1][0].target)

def test_systemListParserKoptsArgument(self):
self.parser._add_system(f"{self.system1},{self.date1},target1,kopts1")
systems = self.parser.get_systems()
self.assertEqual("kopts1", systems[self.date1][0].kopts)

0 comments on commit bb6ac67

Please sign in to comment.