Add test for bad request
This commit is contained in:
@@ -18,6 +18,20 @@ Feature: Auth routes
|
||||
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.
|
||||
"""
|
||||
|
||||
Scenario: The route for create citizen must response a 200 and return object
|
||||
When I send a POST request to "/register" with body:
|
||||
"""
|
||||
{
|
||||
"name": {"first_name":"George2", "last_name":"MICHEL2"},
|
||||
"birthday": "2001-01-01",
|
||||
"user":{
|
||||
"username": "",
|
||||
"plain_password": ""
|
||||
}
|
||||
}
|
||||
"""
|
||||
Then the response status code should be 400
|
||||
|
||||
Scenario: The route for create citizen must response a 200 and return object
|
||||
When I send a POST request to "/login" with body:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user