MCPcopy
hub / github.com/sanic-org/sanic / test_endpoint_basic_asgi

Function test_endpoint_basic_asgi

tests/test_requests.py:2131–2140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2129
2130@pytest.mark.asyncio
2131async def test_endpoint_basic_asgi():
2132 app = Sanic(name="Test")
2133
2134 @app.route("/")
2135 def my_unique_handler(request):
2136 return text("Hello")
2137
2138 request, response = await app.asgi_client.get("/")
2139
2140 assert request.endpoint == "Test.my_unique_handler"
2141
2142
2143def test_endpoint_named_app():

Callers

nothing calls this directly

Calls 2

SanicClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…