Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
5be6db1f
Commit
5be6db1f
authored
3 years ago
by
Mario Raciti
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-1274
: Update comments
parent
54e49571
No related branches found
No related tags found
1 merge request
!689
Resolve TMSS-1090
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/test/t_reports.py
+2
-2
2 additions, 2 deletions
SAS/TMSS/backend/test/t_reports.py
with
2 additions
and
2 deletions
SAS/TMSS/backend/test/t_reports.py
+
2
−
2
View file @
5be6db1f
...
@@ -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 r
a
n the specified time (600s)
# Set explicit actual_process_duration to simulate the pipeline to be r
un withi
n 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 r
a
n half the specified time (300s)
# Set explicit on_sky_duration and actual_process_duration to simulate the obs to be r
un withi
n 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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment