Skip to content

Commit

Permalink
Merge pull request #209 from lsst-sqre/fritzm-patch-1
Browse files Browse the repository at this point in the history
Doc fix: spawn_uvicorn example
  • Loading branch information
rra authored Sep 25, 2023
2 parents 2a3e095 + d1428e9 commit baeb4f5
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 baeb4f5

Please sign in to comment.