Skip to content

Commit 57a55c8

Browse files
fix examples
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
1 parent d63ae80 commit 57a55c8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/auto_retry/test_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_app(self):
2525
from .app import app, dispatch
2626

2727
# Setup a fake Dispatch server.
28-
endpoint_client = EndpointClient.from_app(app)
28+
endpoint_client = EndpointClient(TestClient(app))
2929
dispatch_service = DispatchService(endpoint_client, collect_roundtrips=True)
3030
with DispatchServer(dispatch_service) as dispatch_server:
3131
# Use it when dispatching function calls.

examples/getting_started/test_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_app(self):
2424
from .app import app, dispatch
2525

2626
# Setup a fake Dispatch server.
27-
endpoint_client = EndpointClient.from_app(app)
27+
endpoint_client = EndpointClient(TestClient(app))
2828
dispatch_service = DispatchService(endpoint_client, collect_roundtrips=True)
2929
with DispatchServer(dispatch_service) as dispatch_server:
3030
# Use it when dispatching function calls.

examples/github_stats/test_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_app(self):
2424
from .app import app, dispatch
2525

2626
# Setup a fake Dispatch server.
27-
endpoint_client = EndpointClient.from_app(app)
27+
endpoint_client = EndpointClient(TestClient(app))
2828
dispatch_service = DispatchService(endpoint_client, collect_roundtrips=True)
2929
with DispatchServer(dispatch_service) as dispatch_server:
3030
# Use it when dispatching function calls.

0 commit comments

Comments
 (0)