From: Chen Rotem Levy Date: Sat, 13 Jun 2020 12:50:14 +0000 (+0300) Subject: 🎨 Update and clarify testing function name (#1395) X-Git-Tag: 0.57.0~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe15620df39dfc26a97005968425f1e967f1daed;p=thirdparty%2Ffastapi%2Ffastapi.git 🎨 Update and clarify testing function name (#1395) test_create_existing_token -> test_create_existing_item --- diff --git a/docs_src/app_testing/test_main_b.py b/docs_src/app_testing/test_main_b.py index 3e31a41806..83cc7d2552 100644 --- a/docs_src/app_testing/test_main_b.py +++ b/docs_src/app_testing/test_main_b.py @@ -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"},