MCPcopy
hub / github.com/pandas-dev/pandas / moto_server

Function moto_server

pandas/tests/io/conftest.py:61–73  ·  view source on GitHub ↗
(aws_credentials)

Source from the content-addressed store, hash-verified

59
60@pytest.fixture(scope="session")
61def moto_server(aws_credentials):
62 # use service container for Linux on GitHub Actions
63 if is_ci_environment() and not (
64 is_platform_mac() or is_platform_arm() or is_platform_windows()
65 ):
66 yield "http://localhost:5000"
67 else:
68 moto_server = pytest.importorskip("moto.server")
69 server = moto_server.ThreadedMotoServer(port=0)
70 server.start()
71 host, port = server.get_host_and_port()
72 yield f"http://{host}:{port}"
73 server.stop()
74
75
76@pytest.fixture

Callers

nothing calls this directly

Calls 6

is_ci_environmentFunction · 0.90
is_platform_macFunction · 0.90
is_platform_armFunction · 0.90
is_platform_windowsFunction · 0.90
startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected