From 3423d4ed0e85418a27d00feab9457f5a5ae472c3 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 11 Feb 2026 16:13:32 +0000 Subject: [PATCH] Test calling base Illumination --- tests/unit_tests/test_illumination.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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."""