Create working demo (#5)
* Add docs example and update demo source code * Fail with debug * Fix tests * Update sql scripts * Update docs * Add checking for the password * Update documentation with launch/usage example * Launch flake8 instead of pep8 and pyflakes
This commit is contained in:
committed by
Andrew Svetlov
parent
fec22f971c
commit
820dcc8d93
@@ -34,7 +34,7 @@ def test_remember(create_app_and_client):
|
||||
app.router.add_route('GET', '/', handler)
|
||||
resp = yield from client.get('/')
|
||||
assert 200 == resp.status
|
||||
assert 'Andrew' == client.cookies['AIOHTTP_SECURITY'].value
|
||||
assert 'Andrew' == resp.cookies['AIOHTTP_SECURITY'].value
|
||||
yield from resp.release()
|
||||
|
||||
|
||||
@@ -98,5 +98,6 @@ def test_forget(create_app_and_client):
|
||||
resp = yield from client.post('/logout')
|
||||
assert 200 == resp.status
|
||||
assert resp.url.endswith('/')
|
||||
assert '' == client.cookies['AIOHTTP_SECURITY'].value
|
||||
with pytest.raises(KeyError):
|
||||
_ = client.cookies['AIOHTTP_SECURITY'] # noqa
|
||||
yield from resp.release()
|
||||
|
||||
Reference in New Issue
Block a user