FjolleJagt/kbhff_selenium_tests

Refactor login_test file

Closed this issue · 0 comments

We now have several different kinds of data in login_test.py:

  1. Test data such as the username and password for the dummy user
  2. Functions that manipulate the database, such as create_dummy_user
  3. Functions that automate an interaction with the site, such as login
  4. 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.