add oauth

This commit is contained in:
Robert Resch 2021-04-11 16:26:15 +02:00
parent e8b61b100e
commit 0b9f192ded
No known key found for this signature in database
GPG key ID: 6B360759EB2ACAEE
7 changed files with 161 additions and 6 deletions

14
tests/test_models.py Normal file
View file

@ -0,0 +1,14 @@
from bumper import OAuth
def test_oauth():
userId = "test"
o_auth = OAuth.create_new(userId)
assert o_auth is not None
assert o_auth.userId == userId
assert o_auth.access_token is not None
assert o_auth.expire_at is not None
assert o_auth.refresh_token is not None
data = o_auth.toResponse()
assert data is not None