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

TMSS-190: set duration

parent 4086e49a
No related branches found
No related tags found
1 merge request!252Resolve TMSS-190
...@@ -107,6 +107,7 @@ class TestDynamicScheduling(unittest.TestCase): ...@@ -107,6 +107,7 @@ class TestDynamicScheduling(unittest.TestCase):
strategy_template = models.SchedulingUnitObservingStrategyTemplate.objects.get(name="Simple Observation") strategy_template = models.SchedulingUnitObservingStrategyTemplate.objects.get(name="Simple Observation")
scheduling_unit_spec = add_defaults_to_json_object_for_schema(strategy_template.template, scheduling_unit_spec = add_defaults_to_json_object_for_schema(strategy_template.template,
strategy_template.scheduling_unit_template.schema) strategy_template.scheduling_unit_template.schema)
scheduling_unit_spec['tasks']['Observation']['specifications_doc']['duration'] = obs_duration
# add the scheduling_unit_doc to a new SchedulingUnitDraft instance, and were ready to use it! # add the scheduling_unit_doc to a new SchedulingUnitDraft instance, and were ready to use it!
return models.SchedulingUnitDraft.objects.create(name=name, return models.SchedulingUnitDraft.objects.create(name=name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment