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

TMSS-1274: Update comments

parent 54e49571
No related branches found
No related tags found
1 merge request!689Resolve TMSS-1090
...@@ -300,7 +300,7 @@ class ReportTest(unittest.TestCase): ...@@ -300,7 +300,7 @@ class ReportTest(unittest.TestCase):
dataformat=models.Dataformat.objects.get(value="pulp analysis"), dataformat=models.Dataformat.objects.get(value="pulp analysis"),
datatype=models.Datatype.objects.get(value="time series"))) datatype=models.Datatype.objects.get(value="time series")))
# Set explicit actual_process_duration to simulate the pipeline to be ran the specified time (600s) # Set explicit actual_process_duration to simulate the pipeline to be run within the specified time (600s)
now = datetime.utcnow() now = datetime.utcnow()
set_subtask_state_following_allowed_transitions(pipeline_subtask, 'queued') set_subtask_state_following_allowed_transitions(pipeline_subtask, 'queued')
pipeline_subtask.state = models.SubtaskState.objects.get(value=models.SubtaskState.Choices.STARTING.value) pipeline_subtask.state = models.SubtaskState.objects.get(value=models.SubtaskState.Choices.STARTING.value)
...@@ -326,7 +326,7 @@ class ReportTest(unittest.TestCase): ...@@ -326,7 +326,7 @@ class ReportTest(unittest.TestCase):
results_accepted = True if i == 0 else False results_accepted = True if i == 0 else False
SchedulingUnitProcess.objects.create(su=su_blueprint, results_accepted=results_accepted) SchedulingUnitProcess.objects.create(su=su_blueprint, results_accepted=results_accepted)
elif i == 2: # Cancelled at half specified time duration (300s) elif i == 2: # Cancelled at half specified time duration (300s)
# Set explicit on_sky_duration and actual_process_duration to simulate the obs to be ran half the specified time (300s) # Set explicit on_sky_duration and actual_process_duration to simulate the obs to be run within half the specified time (300s)
now = datetime.utcnow() now = datetime.utcnow()
set_subtask_state_following_allowed_transitions(obs_subtask, 'queued') set_subtask_state_following_allowed_transitions(obs_subtask, 'queued')
obs_subtask.state = models.SubtaskState.objects.get(value=models.SubtaskState.Choices.STARTING.value) obs_subtask.state = models.SubtaskState.objects.get(value=models.SubtaskState.Choices.STARTING.value)
......
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