Skip to content

Commit

Permalink
[serve] Fix app_builder doc code test (ray-project#35456)
Browse files Browse the repository at this point in the history
Missing import.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
  • Loading branch information
edoakes committed May 18, 2023
1 parent f1f4d69 commit 315a1b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/source/serve/doc_code/app_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def app_builder(args: Dict[str, str]) -> Application:

# __end_untyped_builder__

import requests

serve.run(app_builder({"message": "Hello bar"}))
resp = requests.get("http://localhost:8000")
assert resp.text == "Hello bar"
Expand Down

0 comments on commit 315a1b0

Please sign in to comment.