twintechlabs / flaskdash

Flask starter app featuring CoreUI and the FlaskUser module.
Other
114 stars 29 forks source link

tests fail without 'Next' for login #23

Open johnbyrne7 opened 2 years ago

johnbyrne7 commented 2 years ago

i downloaded and installed the other day. The web site came up OK, but the tests failed. I added a next='/' to the test login data, and that worked.

response = client.post(url_for('user.login'), follow_redirects=True, data=dict(email='member@example.com', password='Password1', next='/'))

BTW, Flask-User has been yanked, so you need a specific version in requirements if you'll continue to use it