You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
627 B
22 lines
627 B
from tests.conftest import AuthActions
|
|
|
|
|
|
def test_login_happy_path(auth: AuthActions):
|
|
result = auth.login()
|
|
assert result.status_code == 200
|
|
assert result.json['token'] is not None and len(result.json['token']) > 0
|
|
|
|
|
|
def test_bump_happy_path(auth: AuthActions):
|
|
auth.login()
|
|
result = auth.bump()
|
|
assert result.status_code == 200
|
|
assert (result.json['last_login_time'] is not None
|
|
and len(result.json['last_login_time']) > 0)
|
|
|
|
|
|
def test_logout_happy_path(auth: AuthActions):
|
|
auth.login()
|
|
result = auth.logout()
|
|
assert result.status_code == 200
|
|
assert result.json is None
|