Add further server setup tests splitting up configuration testing from CLI

This commit is contained in:
Julian Stirling 2025-08-23 22:57:20 +01:00
parent 405299b221
commit 867cd0cad1
3 changed files with 132 additions and 20 deletions

View file

@ -17,3 +17,11 @@ def mock_app(mocker):
app = mocker.Mock()
app.get.return_value = wrapper
return app
@pytest.fixture
def mock_server(mock_app, mocker):
"""Return a LabThings FastAPI server where .app is the mock_app fixture."""
server = mocker.Mock()
server.app = mock_app
return server