]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🎨 Update and clarify testing function name (#1395)
authorChen Rotem Levy <chenl@users.noreply.github.com>
Sat, 13 Jun 2020 12:50:14 +0000 (15:50 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Jun 2020 12:50:14 +0000 (14:50 +0200)
test_create_existing_token -> test_create_existing_item

docs_src/app_testing/test_main_b.py

index 3e31a41806dbaedb5f03d14b712296684dd672d8..83cc7d2552110e4c134a4b8d140d8f97dac8639d 100644 (file)
@@ -51,7 +51,7 @@ def test_create_item_bad_token():
     assert response.json() == {"detail": "Invalid X-Token header"}
 
 
-def test_create_existing_token():
+def test_create_existing_item():
     response = client.post(
         "/items/",
         headers={"X-Token": "coneofsilence"},