pre-commit-ci-lite[bot]
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
366 additions and
368 deletions
-
tests/test_http_query_method.py
|
|
|
@ -37,9 +37,7 @@ client = TestClient(app) |
|
|
|
|
|
|
|
|
|
|
|
def test_query_item(): |
|
|
|
response = client.request( |
|
|
|
"QUERY", "/items/", json={"name": "Foo", "price": 50.5} |
|
|
|
) |
|
|
|
response = client.request("QUERY", "/items/", json={"name": "Foo", "price": 50.5}) |
|
|
|
assert response.status_code == 200 |
|
|
|
assert response.json() == { |
|
|
|
"name": "Foo", |
|
|
|
|