Skip to content

Commit

Permalink
Doc fix: spawn_uvicorn example
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzm authored Sep 25, 2023
1 parent 2a3e095 commit d1428e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/uvicorn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ This code assumes the source code of the test app is in the variable ``_APP_SOUR
app_path = tmp_path / "test.py"
app_path.write_text(_APP_SOURCE)
uvicorn = spawn_uvicorn(working_directory=tmp_path, app="test:app")
yield process
uvicorn.terminate()
yield uvicorn
uvicorn.process.terminate()
The ``.url`` attribute of the returned object will contain the base URL of the running app.
It will be listening on localhost on a random high-numbered port.
Expand Down

0 comments on commit d1428e9

Please sign in to comment.