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.social_authentication_tests )
Any background context you want to provide?
The user will have options for logging in directly into the app through Facebook, Google or Twitter
What does this PR do?
Tests the login via Google, Twitter or Facebook
Description of Task to be completed?
Write failing tests before the login feature is implemented. This will be done by updating the serializers.py, urls.py and views.py
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.social_authentication_tests
)Any background context you want to provide?
The user will have options for logging in directly into the app through Facebook, Google or Twitter
What are the relevant pivotal tracker stories?
#161966897
Screenshots (if appropriate)