Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tango Images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
Tango Images
Commits
90349551
Commit
90349551
authored
4 years ago
by
Adriaan de Beer
Browse files
Options
Downloads
Patches
Plain Diff
ST-456
Slight modification - still not very truthful but more acceptable
parent
a39bbda2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
post-deployment/features/tango-commands.feature
+2
-2
2 additions, 2 deletions
post-deployment/features/tango-commands.feature
post-deployment/tests/test_tango-commands.py
+1
-1
1 addition, 1 deletion
post-deployment/tests/test_tango-commands.py
with
3 additions
and
3 deletions
post-deployment/features/tango-commands.feature
+
2
−
2
View file @
90349551
...
@@ -22,8 +22,8 @@ Scenario: Test DevString command
...
@@ -22,8 +22,8 @@ Scenario: Test DevString command
Scenario
:
Test short_spectrum_ro
Scenario
:
Test short_spectrum_ro
Given
a device called sys/tg_test/1
Given
a device called sys/tg_test/1
Then
the attribute short_spectrum_ro is
True
Then
the attribute short_spectrum_ro is
tango._tango.AttrQuality.ATTR_VALID
Scenario
:
Test short_spectrum
Scenario
:
Test short_spectrum
Given
a device called sys/tg_test/1
Given
a device called sys/tg_test/1
Then
the attribute short_spectrum is True
Then
the attribute short_spectrum is tango._tango.AttrQuality.ATTR_VALID
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
post-deployment/tests/test_tango-commands.py
+
1
−
1
View file @
90349551
...
@@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value):
...
@@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value):
if
attr
.
data_format
==
tango
.
_tango
.
AttrDataFormat
.
SCALAR
:
if
attr
.
data_format
==
tango
.
_tango
.
AttrDataFormat
.
SCALAR
:
assert
str
(
attr
.
value
)
==
expected_value
assert
str
(
attr
.
value
)
==
expected_value
elif
attr
.
data_format
==
tango
.
_tango
.
AttrDataFormat
.
SPECTRUM
:
elif
attr
.
data_format
==
tango
.
_tango
.
AttrDataFormat
.
SPECTRUM
:
assert
str
(
attr
.
name
)
==
attribute_nam
e
assert
str
(
attr
.
quality
)
==
expected_valu
e
@then
(
parsers
.
parse
(
"
the result is {expected_result}
"
))
@then
(
parsers
.
parse
(
"
the result is {expected_result}
"
))
def
check_command
(
device_proxy
,
call_command
,
expected_result
):
def
check_command
(
device_proxy
,
call_command
,
expected_result
):
...
...
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