Skip to content
GitLab
Explore
Sign in
Register
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
bdc7223c
Commit
bdc7223c
authored
3 years ago
by
Mario Raciti
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-715
: Add test for piggyback parset keys
parent
5fe04e87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!429
Resolve TMSS-715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/test/t_adapter.py
+10
-0
10 additions, 0 deletions
SAS/TMSS/backend/test/t_adapter.py
with
10 additions
and
0 deletions
SAS/TMSS/backend/test/t_adapter.py
+
10
−
0
View file @
bdc7223c
...
@@ -98,6 +98,16 @@ class ObservationParsetAdapterTest(unittest.TestCase):
...
@@ -98,6 +98,16 @@ class ObservationParsetAdapterTest(unittest.TestCase):
# check whether the ResourceEstimator agrees with our spec
# check whether the ResourceEstimator agrees with our spec
self
.
assertEqual
(
nr_files
,
estimations
[
"
estimates
"
][
0
][
"
output_files
"
][
"
uv
"
][
0
][
"
properties
"
][
"
nr_of_uv_files
"
]
*
estimations
[
"
estimates
"
][
0
][
"
resource_count
"
])
self
.
assertEqual
(
nr_files
,
estimations
[
"
estimates
"
][
0
][
"
output_files
"
][
"
uv
"
][
0
][
"
properties
"
][
"
nr_of_uv_files
"
]
*
estimations
[
"
estimates
"
][
0
][
"
resource_count
"
])
def
test_piggyback_keys
(
self
):
specifications_doc
=
self
.
get_default_specifications
()
subtask
=
self
.
create_subtask
(
specifications_doc
)
parset
=
convert_to_parset_dict
(
subtask
)
sub
=
[
tb
.
scheduling_unit_blueprint
for
tb
in
subtask
.
task_blueprints
.
all
()][
0
]
# Assert the values are the same of the scheduling_unit_blueprint
self
.
assertEqual
(
sub
.
piggyback_allowed_aartfaac
,
parset
[
"
ObservationControl.StationControl.aartfaacPiggybackAllowed
"
])
self
.
assertEqual
(
sub
.
piggyback_allowed_tbb
,
parset
[
"
ObservationControl.StationControl.tbbPiggybackAllowed
"
])
def
test_flyseye
(
self
):
def
test_flyseye
(
self
):
specifications_doc
=
self
.
get_default_specifications
()
specifications_doc
=
self
.
get_default_specifications
()
specifications_doc
[
'
COBALT
'
][
'
version
'
]
=
1
specifications_doc
[
'
COBALT
'
][
'
version
'
]
=
1
...
...
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