Start a mock HTTP server for testing.
()
| 336 | |
| 337 | @pytest.fixture |
| 338 | def mock_server(): |
| 339 | """Start a mock HTTP server for testing.""" |
| 340 | from tests.fixtures.mock_server.server import MockHTTPServer |
| 341 | |
| 342 | server = MockHTTPServer(host="localhost", port=8888) |
| 343 | server.start() |
| 344 | yield server |
| 345 | server.stop() |
| 346 | |
| 347 | |
| 348 | @pytest.fixture |
nothing calls this directly
no test coverage detected