Refactor login_test file
Closed this issue · 0 comments
FjolleJagt commented
We now have several different kinds of data in login_test.py
:
- Test data such as the username and password for the dummy user
- Functions that manipulate the database, such as
create_dummy_user
- Functions that automate an interaction with the site, such as
login
- Tests themselves, one of which is for resetting a password and two of which are for logging in.
I think at minimum (4) should be in its own file, and it might be useful to split (3) into its own file as well.