Skip to content

Commit

Permalink
Removed the BigCamera state-transitions tests from test_maintel_state…
Browse files Browse the repository at this point in the history
…_transitions.py.
  • Loading branch information
rbovill committed Jan 26, 2024
1 parent ce0a1c6 commit 6226d97
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions tests/test_maintel_state_transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

from lsst.ts import salobj
from lsst.ts.IntegrationTests import (
ComCamOfflineStandby,
LsstCamOfflineStandby,
MainTelDisabledEnabled,
MainTelStandbyDisabled,
ScriptQueueController,
Expand All @@ -46,44 +44,6 @@ async def asyncSetUp(self) -> None:
# Start the controller and wait for it be ready.
await self.controller.start_task

async def test_comcam_offline_standby(self) -> None:
"""Execute the ComCamOfflineStandby integration test script,
which runs the ts_standardscripts/set_summary_state.py script.
Use the configuration stored in the maintel_state_transition_configs.py
module.
"""
# Instantiate the ComCamOfflineStandby integration tests.
script_class = ComCamOfflineStandby()
# Get number of scripts
num_scripts = len(script_class.scripts)
print(f"ComCam Offline to Standby; running {num_scripts} scripts")
# Execute the scripts.
await script_class.run()
# Assert script was added to ScriptQueue.
self.assertEqual(len(self.controller.queue_list), num_scripts)
# Assert scripts passed.
self.assertEqual(script_class.script_states, [8])

async def test_lsstcam_offline_standby(self) -> None:
"""Execute the LsstCamOfflineStandby integration test script,
which runs the ts_standardscripts/set_summary_state.py script.
Use the configuration stored in the maintel_state_transition_configs.py
module.
"""
# Instantiate the LsstCamOfflineStandby integration tests.
script_class = LsstCamOfflineStandby()
# Get number of scripts
num_scripts = len(script_class.scripts)
print(f"LSSTCam Offline to Standby; running {num_scripts} scripts")
# Execute the scripts.
await script_class.run()
# Assert script was added to ScriptQueue.
self.assertEqual(len(self.controller.queue_list), num_scripts)
# Assert scripts passed.
self.assertEqual(script_class.script_states, [8])

async def test_maintel_standby_disabled(self) -> None:
"""Execute the MainTelStandbyDisabled integration test script,
which runs the ts_standardscripts/set_summary_state.py script.
Expand Down

0 comments on commit 6226d97

Please sign in to comment.