Closed kamyaD closed 5 years ago
work on the merge conflict, also check for spelling on the pr @r-wambui Working on it locally will push shortly
@kamyaD Please work on the conflicts, also I do not understand why you have 39 files changed yet this was a single task.
Code Climate has analyzed commit e60ca727 and detected 3 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 3 |
View more on Code Climate.
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b https://github.com/andela/ah-infinity-stones
ft-User-able-to-favorite-article-61966922 and$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
to install the dependenciesActivate the env variables by
$source .env
.$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000/api/articles/<slug>/favourite
through Postman, provide inputs in the following format and create account.Check your email and activate account. Use the registration token to acess the following endpoints:
http://127.0.0.1:8000/api/articles
- Post an article.http://127.0.0.1:8000/api/articles/<slug>/favourite
- change to Post on Postman to favorite the article with “favorite”:”True” as the data.http://127.0.0.1:8000/api/articles/<slug>/favourite
- change to delete on Postman to unfavouritepython3 manage.py test authors.apps.articles.tests.test_views.ArticleFavoriteTestCase
What are the relevant pivotal tracker stories?
#161966922
Screenshots