mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-11 17:13:49 +00:00
test(tokens-repo): use 'repo' for consistency
This commit is contained in:
parent
3921d9fe4c
commit
db55685488
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ def test_get_tokens(some_tokens_repo):
|
||||||
repo = some_tokens_repo
|
repo = some_tokens_repo
|
||||||
tokenstrings = []
|
tokenstrings = []
|
||||||
# we cannot insert tokens directly via api, so we check meta-properties instead
|
# we cannot insert tokens directly via api, so we check meta-properties instead
|
||||||
for token in some_tokens_repo.get_tokens():
|
for token in repo.get_tokens():
|
||||||
len(token.token) == 43 # assuming secrets.token_urlsafe
|
len(token.token) == 43 # assuming secrets.token_urlsafe
|
||||||
assert token.token not in tokenstrings
|
assert token.token not in tokenstrings
|
||||||
tokenstrings.append(token.token)
|
tokenstrings.append(token.token)
|
||||||
|
|
Loading…
Add table
Reference in a new issue