Skip to content
Snippets Groups Projects
Commit 38a7f710 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-652: fixed test

parent b0376482
No related branches found
No related tags found
1 merge request!403Resolve TMSS-652 and TMSS-714
...@@ -68,10 +68,11 @@ class TestObservationStrategiesSpecificationAndScheduling(unittest.TestCase): ...@@ -68,10 +68,11 @@ class TestObservationStrategiesSpecificationAndScheduling(unittest.TestCase):
'''helper method to fetch the latest statuses of the subtask, its task, and its schedulingunit, and check for the expected statuses''' '''helper method to fetch the latest statuses of the subtask, its task, and its schedulingunit, and check for the expected statuses'''
subtask = self.tmss_client.get_subtask(subtask_id) subtask = self.tmss_client.get_subtask(subtask_id)
self.assertEqual(expected_subtask_status, subtask['state_value']) self.assertEqual(expected_subtask_status, subtask['state_value'])
task = self.tmss_client.get_url_as_json_object(subtask['task_blueprint']) tasks = [self.tmss_client.get_url_as_json_object(task_url) for task_url in subtask['task_blueprints']]
self.assertEqual(expected_task_status, task['status']) for task in tasks:
schedunit = self.tmss_client.get_url_as_json_object(task['scheduling_unit_blueprint']) self.assertEqual(expected_task_status, task['status'])
self.assertEqual(expected_schedunit_status, schedunit['status']) schedunit = self.tmss_client.get_url_as_json_object(task['scheduling_unit_blueprint'])
self.assertEqual(expected_schedunit_status, schedunit['status'])
def test_UC1(self): def test_UC1(self):
def check_parset(obs_subtask, is_target_obs:bool): def check_parset(obs_subtask, is_target_obs:bool):
......
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