From 538928f569ebe0c7fcfe762993d43815e4430049 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 14 Jun 2022 12:06:57 +0200
Subject: [PATCH] Initialise() throws now if it fails

---
 .../test/devices/test_observation_device.py                   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py b/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py
index 1087fdd9f..dc04f5d07 100644
--- a/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py
+++ b/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py
@@ -41,8 +41,8 @@ class TestObservationDevice(device_base.DeviceTestCase, test_observation_base.Te
         with DeviceTestContext(observation.Observation, process=True) as proxy:
             proxy.off()
             proxy.observation_settings_RW = "{}"
-            proxy.Initialise()
-            self.assertEqual(DevState.FAULT, proxy.state())
+            with self.assertRaises(DevFailed):
+                proxy.Initialise()
 
     def test_prohibit_rewriting_settings(self):
         """Test that changing observation settings is disallowed once init"""
-- 
GitLab