MCPcopy
hub / github.com/redis/redis-py / endpoint

Function endpoint

tests/test_credentials.py:37–45  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

35
36@pytest.fixture()
37def endpoint(request):
38 endpoint_name = request.config.getoption("--endpoint-name")
39
40 try:
41 return get_endpoint(endpoint_name)
42 except FileNotFoundError as e:
43 pytest.skip(
44 f"Skipping scenario test because endpoints file is missing: {str(e)}"
45 )
46
47
48@pytest.fixture()

Callers

nothing calls this directly

Calls 1

get_endpointFunction · 0.90

Tested by

no test coverage detected