MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / mock_server

Function mock_server

tests/conftest.py:338–345  ·  view source on GitHub ↗

Start a mock HTTP server for testing.

()

Source from the content-addressed store, hash-verified

336
337@pytest.fixture
338def 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

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
stopMethod · 0.95
MockHTTPServerClass · 0.90

Tested by

no test coverage detected