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

TMSS-190: name for demo subs

parent adc38bac
No related branches found
No related tags found
1 merge request!252Resolve TMSS-190
......@@ -90,10 +90,7 @@ def populate_test_data():
# constraints_spec['daily']['avoid_twilight'] = unit_nr%4>1
# add the scheduling_unit_doc to a new SchedulingUnitDraft instance, and were ready to use it!
scheduling_unit_draft = models.SchedulingUnitDraft.objects.create(name="%s %s.%s.%s" % ('UC1' if strategy_template==uc1_strategy_template else 'Obs',
'day' if constraints_spec['daily']['require_day'] else 'night' if constraints_spec['daily']['require_night'] else 'anytime',
'no_tl' if constraints_spec['daily']['avoid_twilight'] else 'tl_ok',
unit_nr+1),
scheduling_unit_draft = models.SchedulingUnitDraft.objects.create(name="%s %s %0d" % ('UC1' if strategy_template==uc1_strategy_template else 'Obs', tmss_project.name, unit_nr+1),
scheduling_set=scheduling_set,
description="Test scheduling unit",
requirements_template=strategy_template.scheduling_unit_template,
......
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