fix(FastAPI): AnonymousUser.has_credential also takes kwargs

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-30 13:56:14 -07:00
parent 59d04d6e0c
commit 6644c42922
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 6 additions and 1 deletions

View file

@ -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")