Actually set the revoked flag

This commit is contained in:
Raphael Michel
2019-04-02 09:44:09 +02:00
parent 2d37c6d94d
commit b261a2041a
3 changed files with 3 additions and 3 deletions

View File

@@ -145,4 +145,4 @@ def test_revoke_valid(device_client, device: Device):
resp = device_client.post('/api/v1/device/revoke')
assert resp.status_code == 200
device.refresh_from_db()
assert not device.api_token
assert device.revoked