andela / ah-infinity-stones

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

#161966897 Implement Delete and Update Test Cases for User Notifications #28

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-notifications2-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-07 at 13 26 16
ThaDeveloper commented 5 years ago

This is OK. All the tests relate to the previous notifications tests.

leonardnjura commented 5 years ago

This adds more edge cases for notification test cases