Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
22252290
Commit
22252290
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-480
: Do patch DeviceProxy in lofar_base_device as well
parent
1939d588
No related branches found
No related tags found
1 merge request
!220
Resolve L2SS-480 "Delays to beam weights"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
+7
-5
7 additions, 5 deletions
...trol/tangostationcontrol/test/devices/test_beam_device.py
with
7 additions
and
5 deletions
tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
+
7
−
5
View file @
22252290
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
from
tango
import
DevState
from
tango
import
DevState
from
tango.test_context
import
DeviceTestContext
from
tango.test_context
import
DeviceTestContext
import
tango
from
tangostationcontrol.devices
import
beam
from
tangostationcontrol.devices
import
beam
,
lofar_device
import
numpy
import
numpy
import
mock
import
mock
...
@@ -25,10 +26,11 @@ class TestBeamDevice(base.TestCase):
...
@@ -25,10 +26,11 @@ class TestBeamDevice(base.TestCase):
# Patch DeviceProxy to allow making the proxies during initialisation
# Patch DeviceProxy to allow making the proxies during initialisation
# that we otherwise avoid using
# that we otherwise avoid using
proxy_patcher
=
mock
.
patch
.
object
(
for
device
in
[
beam
,
lofar_device
]:
beam
,
'
DeviceProxy
'
)
proxy_patcher
=
mock
.
patch
.
object
(
self
.
m_init
=
proxy_patcher
.
start
()
device
,
'
DeviceProxy
'
)
self
.
addCleanup
(
proxy_patcher
.
stop
)
proxy_patcher
.
start
()
self
.
addCleanup
(
proxy_patcher
.
stop
)
def
test_get_pointing_directions
(
self
):
def
test_get_pointing_directions
(
self
):
"""
Verify can read pointings attribute and length matches without err
"""
"""
Verify can read pointings attribute and length matches without err
"""
...
...
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