Add the variables into the virtual environment you just created. source .env
run python3 manage.py test. If the tests cannot be found automatically, you'll need to add the url after the word test ( python3 manage.py test authors.apps.authentication.tests.login_tests )
Any background context you want to provide?
The user will have login into the app by providing email and password.
What does this PR do?
Tests the normal login process where the user inputs their email and id.
Description of Task to be completed?
Write failing tests before the login feature is implemented.
How should this be manually tested?
After cloning the repo, CD into it.
Create and start your virtual environment
Install dependencies.
pip3 install -r requirements.txt
Define the following environment variables and place them in a
.env
file in the root directoryexport DATABASE_USER='postgres' export DATABASE_PASSWORD='postgres' export HOST='localhost' export PORT='5432' export DATABASE_TEST='test_db'
Add the variables into the virtual environment you just created.
source .env
run
python3 manage.py test
. If the tests cannot be found automatically, you'll need to add the url after the word test (python3 manage.py test authors.apps.authentication.tests.login_tests
)Any background context you want to provide?
The user will have login into the app by providing email and password.
What are the relevant pivotal tracker stories?
#161966897
Screenshots (if appropriate)