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
3a4d56a5
Commit
3a4d56a5
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-815
: check for integer types.
parent
d5b38d18
No related branches found
No related tags found
2 merge requests
!59
Merge LOFAR-Release-4_0 into master
,
!55
Resolve SW-815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/ResourceAssignment/TaskPrescheduler/test/test_taskprescheduler.py
+7
-0
7 additions, 0 deletions
...Assignment/TaskPrescheduler/test/test_taskprescheduler.py
with
7 additions
and
0 deletions
SAS/ResourceAssignment/TaskPrescheduler/test/test_taskprescheduler.py
+
7
−
0
View file @
3a4d56a5
...
...
@@ -292,7 +292,14 @@ class PreschedulerTest(unittest.TestCase):
spec
=
Specification
(
self
.
otdbrpc_mock
,
self
.
momrpc_mock
,
self
.
radbrpc_mock
)
spec
.
internal_dict
=
self
.
test_specification
cobalt_settings
=
calculateCobaltSettings
(
spec
)
# beware! assertEqual succeeds for a comparison between 42.0 and 42
# but for lofar specs it is essential that some values are int
# so, check specifically for those!
self
.
assertEqual
(
cobalt_settings
,
self
.
test_cobalt_settings
)
self
.
assertEqual
(
int
,
type
(
cobalt_settings
[
'
blockSize
'
]))
self
.
assertEqual
(
int
,
type
(
cobalt_settings
[
'
nrBlocks
'
]))
self
.
assertEqual
(
int
,
type
(
cobalt_settings
[
'
nrSubBlocks
'
]))
@mock.patch
(
"
lofar.common.util.waitForInterrupt
"
)
@mock.patch
(
"
lofar.messaging.messagebus.BusListener.start_listening
"
)
...
...
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