diff --git a/tests/unit_tests/test_illumination.py b/tests/unit_tests/test_illumination.py index f8edbd8a..1c675c0a 100644 --- a/tests/unit_tests/test_illumination.py +++ b/tests/unit_tests/test_illumination.py @@ -5,11 +5,19 @@ import pytest from labthings_fastapi.testing import create_thing_without_server from openflexure_microscope_server.things.illumination import ( + Illumination, SangaIllumination, SimulatorIllumination, ) +def test_base_illumination_flash_not_implemented(): + """Check that calling flash on the base Illumination raises NotImplementedError.""" + ill = create_thing_without_server(Illumination) + with pytest.raises(NotImplementedError, match="Flashing the LED can only be done"): + ill.flash(number_of_flashes=1, dt=0.01) + + @pytest.fixture def sanga_mock_stage(): """Return a SangaIllumination with a mocked stage."""