Skip to content

Commit

Permalink
test mock setup start
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherhead99 committed Apr 3, 2024
1 parent c88a53f commit 5f94805
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
5 changes: 4 additions & 1 deletion python/lsst/ts/observatory/control/auxtel/atcalsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ def lamp_verify(evt):
)

async def take_calibration_data(self) -> dict[str, list[str]]:
"""Take the calibration data (i.e. the elecrometer and spectrometer data).
NOTE: explicitly does NOT take the LATISS flats, those should be handled separately
by the calling script """
spec_fut = self._spectrograph_expose()
elec_fut = self._electrometer_expose()

Expand All @@ -501,5 +504,5 @@ def program_reason(self) -> str:
return "AT_flats"

@property
def prgoram_note(self) -> str:
def program_note(self) -> str:
return "TODO"
19 changes: 15 additions & 4 deletions tests/test_calsys_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import pytest
from lsst.ts import salobj
from lsst.ts.observatory.control.utils import RemoteGroupTestCase


from lsst.ts.observatory.control.mock.latiss_mock import LATISSMock
from lsst.ts.observatory.control.base_calsys import HardcodeCalsysThroughput

Expand All @@ -25,7 +23,20 @@ def test_interpolate(self):
throughput_low = obj.radiometer_throughput(875.0)


class TestATCalsys(RemoteGroupTestCase, unittest.IsolatedAsyncioTestCase):
"""Test cases for the ATCalsys concrete implementation """

@classmethod
def setUpClass(cls) -> None:
"""set up mocks and such that we need for all the tests"""



async def basic_make_group(
self, usage: typing.Optional[int] = None) -> typing.Iterable[typing.Union[RemoteGroup, salobj.BaseCsc]]:
pass



class TestATCalsys(unittest.TestCase): ...
class TestMTCalsys(unittest.TestCase): ...


0 comments on commit 5f94805

Please sign in to comment.