add oauth
This commit is contained in:
parent
e8b61b100e
commit
0b9f192ded
7 changed files with 161 additions and 6 deletions
14
tests/test_models.py
Normal file
14
tests/test_models.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue