Add a regression test.
This commit is contained in:
parent
5d309af86f
commit
58bae83558
|
@ -182,6 +182,14 @@ def test_token():
|
|||
|
||||
assert request.token == token
|
||||
|
||||
# no Authorization headers
|
||||
headers = {
|
||||
'content-type': 'application/json'
|
||||
}
|
||||
|
||||
request, response = app.test_client.get('/', headers=headers)
|
||||
|
||||
assert request.token is None
|
||||
|
||||
|
||||
# ------------------------------------------------------------ #
|
||||
|
|
Loading…
Reference in New Issue
Block a user