An ebook/comic library service and web client
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
626 B

  1. from tests.conftest import AuthActions
  2. def test_login_happy_path(auth: AuthActions):
  3. result = auth.login()
  4. assert result.status_code == 200
  5. assert result.json['token'] is not None and len(result.json['token']) > 0
  6. def test_bump_happy_path(auth: AuthActions):
  7. auth.login()
  8. result = auth.bump()
  9. assert result.status_code == 200
  10. assert (result.json['lastLoginTime'] is not None
  11. and len(result.json['lastLoginTime']) > 0)
  12. def test_logout_happy_path(auth: AuthActions):
  13. auth.login()
  14. result = auth.logout()
  15. assert result.status_code == 200
  16. assert result.json['success']