Add further server setup tests splitting up configuration testing from CLI
This commit is contained in:
parent
405299b221
commit
867cd0cad1
3 changed files with 132 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue