Skip to content
Snippets Groups Projects
Commit bdc7223c authored by Mario Raciti's avatar Mario Raciti
Browse files

TMSS-715: Add test for piggyback parset keys

parent 5fe04e87
No related branches found
No related tags found
1 merge request!429Resolve TMSS-715
...@@ -98,6 +98,16 @@ class ObservationParsetAdapterTest(unittest.TestCase): ...@@ -98,6 +98,16 @@ class ObservationParsetAdapterTest(unittest.TestCase):
# check whether the ResourceEstimator agrees with our spec # check whether the ResourceEstimator agrees with our spec
self.assertEqual(nr_files, estimations["estimates"][0]["output_files"]["uv"][0]["properties"]["nr_of_uv_files"] * estimations["estimates"][0]["resource_count"]) self.assertEqual(nr_files, estimations["estimates"][0]["output_files"]["uv"][0]["properties"]["nr_of_uv_files"] * estimations["estimates"][0]["resource_count"])
def test_piggyback_keys(self):
specifications_doc = self.get_default_specifications()
subtask = self.create_subtask(specifications_doc)
parset = convert_to_parset_dict(subtask)
sub = [tb.scheduling_unit_blueprint for tb in subtask.task_blueprints.all()][0]
# Assert the values are the same of the scheduling_unit_blueprint
self.assertEqual(sub.piggyback_allowed_aartfaac, parset["ObservationControl.StationControl.aartfaacPiggybackAllowed"])
self.assertEqual(sub.piggyback_allowed_tbb, parset["ObservationControl.StationControl.tbbPiggybackAllowed"])
def test_flyseye(self): def test_flyseye(self):
specifications_doc = self.get_default_specifications() specifications_doc = self.get_default_specifications()
specifications_doc['COBALT']['version'] = 1 specifications_doc['COBALT']['version'] = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment