Add a regression test.

This commit is contained in:
Johnny 2017-05-17 11:15:45 +02:00
parent 5d309af86f
commit 58bae83558

View File

@ -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
# ------------------------------------------------------------ #