added missing docstring
This commit is contained in:
parent
7cad11981e
commit
b1897948b1
@ -23,8 +23,9 @@ class TestUnitGenreRead:
|
|||||||
assert b'eGgS' in response.data
|
assert b'eGgS' in response.data
|
||||||
|
|
||||||
def test_get_request_with_query(self, client):
|
def test_get_request_with_query(self, client):
|
||||||
|
"""test GET request with query string"""
|
||||||
response = client.get("/genre", query_string={"id": 1, "form_genre": "spam"})
|
response = client.get("/genre", query_string={"id": 1, "form_genre": "spam"})
|
||||||
# assert good HTTP response
|
# assert good HTTP response
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
def test_post_request(self, client):
|
def test_post_request(self, client):
|
||||||
@ -144,4 +145,3 @@ class TestUnitGenreDelete:
|
|||||||
"""test a POST request"""
|
"""test a POST request"""
|
||||||
response = client.post("/genre/delete/1")
|
response = client.post("/genre/delete/1")
|
||||||
assert response.status_code == 405
|
assert response.status_code == 405
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user