Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from app.auth.functions import check_if_username_or_email_is_in_db
- def test_login_functions(yield_username, username_form, hashed_password_form, email_form):
- with app.test_request_context():
- # example 1 I get the unexpected output for /login route, IOW /login will not work because it is not redirecting
- # the output of the func is None because the db has values
- yield_username = yield_username(username_form, hashed_password_form, email_form)
- assert check_if_username_or_email_is_in_db(yield_username) == None
Advertisement
Add Comment
Please, Sign In to add comment