Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
1. Import the `app` from the the `main` module.
1. Import the `app` from the `main` module.

2. We create a `TestClient` for the FastAPI `app` and put it in the variable `client`.

3. Then we use use this `client` to **talk to the API** and send a `POST` HTTP operation, creating a new hero.
3. Then we use this `client` to **talk to the API** and send a `POST` HTTP operation, creating a new hero.

4. Then we get the **JSON data** from the response and put it in the variable `data`.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1. Import the `get_session` dependency from the the `main` module.
1. Import the `get_session` dependency from the `main` module.

2. Define the new function that will be the new **dependency override**.

Expand Down
Loading