🎨 Update and clarify testing function name (#1395)

test_create_existing_token -> test_create_existing_item
This commit is contained in:
Chen Rotem Levy 2020-06-13 15:50:14 +03:00 committed by GitHub
parent 6af857f206
commit fe15620df3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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