Browse Source
🔥 Delete duplicated tests in `tests/test_tutorial/test_sql_databases/test_sql_databases.py` (#5040)
pull/4200/merge
Seungho Kim
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
6 deletions
-
tests/test_tutorial/test_sql_databases/test_sql_databases.py
|
|
@ -356,12 +356,6 @@ def test_create_item(client): |
|
|
|
item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0] |
|
|
|
assert item_to_check["title"] == item["title"] |
|
|
|
assert item_to_check["description"] == item["description"] |
|
|
|
response = client.get("/users/1") |
|
|
|
assert response.status_code == 200, response.text |
|
|
|
user_data = response.json() |
|
|
|
item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0] |
|
|
|
assert item_to_check["title"] == item["title"] |
|
|
|
assert item_to_check["description"] == item["description"] |
|
|
|
|
|
|
|
|
|
|
|
def test_read_items(client): |
|
|
|