FjolleJagt / kbhff_selenium_tests

2 stars 1 forks source link

Refactor login_test file #7

Closed FjolleJagt closed 5 years ago

FjolleJagt commented 5 years ago

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.