From 54b656952fe0388bd21ab658d36690f4ab372add Mon Sep 17 00:00:00 2001 From: Beth Probert Date: Thu, 2 Apr 2026 15:09:39 +0100 Subject: [PATCH] Remove mock call to replace with real call --- tests/unit_tests/test_server_cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit_tests/test_server_cli.py b/tests/unit_tests/test_server_cli.py index 0f0bdec2..0e7b3ef7 100644 --- a/tests/unit_tests/test_server_cli.py +++ b/tests/unit_tests/test_server_cli.py @@ -117,8 +117,7 @@ def test_debug_mode(mocker): "openflexure_microscope_server.server.lt.ThingServer.from_config", return_value=mocker.Mock(), ) - # Mock customisation to avoid side effects - mocker.patch.object(ofm_server, "customise_server") + # Mock uvicorn.run to avoid starting a server mocker.patch("openflexure_microscope_server.server.uvicorn.run")