mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-04 18:53:10 +00:00
test(tokens-repo): use rest token info in token deletion test
This commit is contained in:
parent
7e0e6015cf
commit
270e569af2
|
@ -74,15 +74,9 @@ def test_delete_token(authorized_client, tokens_file):
|
|||
"/auth/tokens", json={"token_name": "test_token2"}
|
||||
)
|
||||
assert response.status_code == 200
|
||||
assert read_json(tokens_file) == {
|
||||
"tokens": [
|
||||
{
|
||||
"token": "TEST_TOKEN",
|
||||
"name": "test_token",
|
||||
"date": "2022-01-14 08:31:10.789314",
|
||||
}
|
||||
assert rest_get_tokens_info(authorized_client) == [
|
||||
{"name": "test_token", "date": "2022-01-14T08:31:10.789314", "is_caller": True}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def test_delete_self_token(authorized_client, tokens_file):
|
||||
|
|
Loading…
Reference in a new issue