mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): AnonymousUser.has_credential also takes kwargs
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
59d04d6e0c
commit
6644c42922
2 changed files with 6 additions and 1 deletions
|
@ -117,3 +117,8 @@ def test_voted_for():
|
|||
def test_notified():
|
||||
user_ = AnonymousUser()
|
||||
assert not user_.notified(None)
|
||||
|
||||
|
||||
def test_has_credential():
|
||||
user_ = AnonymousUser()
|
||||
assert not user_.has_credential("FAKE_CREDENTIAL")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue