andela / ah-infinity-stones

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

#161966897 Implement Test Cases for User Notifications #24

Closed leonardnjura closed 5 years ago

leonardnjura commented 5 years ago

What does this PR do?

Implement notifications feature tests

Description of Task to be completed?

Setup postgres test database Write testscases Create Notification and Article model to eliminate import errors

How should this be manually tested?

$ git clone -b ch-test-delete-update-notifications-161966897 https://github.com/andela/ah-infinity-stones then $ cd ah-infinity-stones

Create and activate virtual env virtualenv -p python3 venv $ source venv/bin/activate $ pip3 install -r requirements.txt to install the dependencies Setup environment variables. Copy all from below and paste them into the .env file. Update the values to your choice:

export DATABASE_USER='user'
export DATABASE_PASSWORD='xxx'
export HOST='localhost'
export PORT='5432'
export DATABASE_TEST='ah_test'

Activate the env variables by $source .env Run migrations: $ python3 manage.py migrate Run tests - $ python3 manage.py test

What are the relevant pivotal tracker stories?

#161966897

Screenshots

screen shot 2018-12-06 at 14 27 57
leonardnjura commented 5 years ago

Closed because a rebased branch version was merged into team mate paired with