Guest User

Untitled

a guest
Aug 13th, 2023
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1.  
  2. from app.auth.functions import check_if_username_or_email_is_in_db
  3.  
  4.  
  5. def test_login_functions(yield_username, username_form, hashed_password_form, email_form):
  6.  
  7.     with app.test_request_context():        
  8.         # example 1 I get the  unexpected output for /login route, IOW /login will not work because it is not redirecting
  9.  
  10.         # the output of the func is None because the db has values
  11.         yield_username = yield_username(username_form, hashed_password_form, email_form)
  12.        
  13.        
  14.         assert check_if_username_or_email_is_in_db(yield_username) == None
  15.  
Advertisement
Add Comment
Please, Sign In to add comment