-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Delivers #158623810] Challenge 2 completed and hosted on heroku #3
Conversation
rename test_does_not_fetch_single_ride_that_does_not_exist to test_does_not_fetch_ride_that_does_not_exist
[Finishes #158592619] [Finishes #158592679]
[Chore] Test api endpoints [WIP]
…7497 [Chore #158607497] Setup flask restful
Code Climate has analyzed commit a21ef67 and detected 0 issues on this pull request. View more on Code Climate. |
Pull Request Test Coverage Report for Build 121
💛 - Coveralls |
from .response import Response | ||
|
||
|
||
def create_ride(**kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function create_ride
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Controls all CRUD operations of the Request object. | ||
""" | ||
|
||
def create_request(self, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function create_request
has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Controls all CRUD operations of the Request object. | ||
""" | ||
|
||
def create_request(self, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function create_request
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Good job |
…eki/ridemyway-api into ft-api-docs-158650274
[Delivers #158650274] API Documentation
What does this PR do?
Completes challenge 2 with working endpoints.
Description of Task to be completed
Add working and tested endpoints as required in challenge 2.
Endpoints created and tested?
/api/v1/rides
/api/v1/rides
/api/v1/rides/<rideId>
/api/v1/auth/rides/<rideId>/requests
Tasks achieved in this PR
How should this be manually tested?
git clone https://github.com/JoshuaOndieki/ridemyway-api.git
git checkout develop
nosetests --with-coverage --cover-package=ridemyway
to see the tests pass and coverageBackground Context?
My approach assumes no users and therefore rides can be created and requests made without user interaction.
Resources & Libs
This Pivotal Tracker board was used to plan and manage the tasks.