bumper/tests/test_models.py
Robert Resch 0b9f192ded
add oauth
2021-04-11 16:26:15 +02:00

14 lines
355 B
Python

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