Skip to content

Commit

Permalink
[serve] Fix app_builder doc code test (#35456)
Browse files Browse the repository at this point in the history
Missing import.
  • Loading branch information
edoakes authored May 17, 2023
1 parent 53d3ef1 commit 429316c
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 429316c

Please sign in to comment.