From 1939d58819e4c52ab76b7623be27afa0df1e2fe8 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 26 Jan 2022 09:45:04 +0100
Subject: [PATCH] L2SS-480: Patching init_device is not needed anymore since we
 now patch DeviceProxy more specifically

---
 .../tangostationcontrol/test/devices/test_beam_device.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py b/tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
index bb89efc7a..07ac6ebdf 100644
--- a/tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
+++ b/tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
@@ -23,15 +23,6 @@ class TestBeamDevice(base.TestCase):
     def setUp(self):
         super(TestBeamDevice, self).setUp()
 
-        # lofar_device init_device will launch a DeviceProxy not captured by
-        # the TestDeviceContext making it fail.
-
-        # Patch init_device and force match spec
-        init_patcher = mock.patch.object(
-            beam.Beam, 'init_device', spec=beam.Beam.init_device)
-        self.m_init = init_patcher.start()
-        self.addCleanup(init_patcher.stop)
-
         # Patch DeviceProxy to allow making the proxies during initialisation
         # that we otherwise avoid using
         proxy_patcher = mock.patch.object(
-- 
GitLab