Skip to content
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

✨Add outcome endpoint #189

Merged
merged 5 commits into from
Mar 19, 2018
Merged

✨Add outcome endpoint #189

merged 5 commits into from
Mar 19, 2018

Conversation

parimalak
Copy link
Contributor

Added outcome resources and schemas
Updated tests for outcome resource

@parimalak parimalak added the feature New functionality label Mar 16, 2018
@parimalak parimalak added this to the CHOP Sprint 4 milestone Mar 16, 2018
@parimalak parimalak self-assigned this Mar 16, 2018

def test_patch_bad_input(self):
"""
Test updating an existing participant with invalid input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be updated.

OUTCOMES_LIST_URL = 'api.outcomes_list'


class OutcomeTest(FlaskTestCase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should merge #84 first and then you can probably remove a lot of these tests (bad input, missing req params) and put them in test_api.py.

Copy link
Contributor

@dankolbman dankolbman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

@znatty22 znatty22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're missing a relations test for outcome in test_api.py. In:

def test_relations(self, client, entities, resource, field)

@@ -105,6 +112,7 @@ def test_status_format(self, client, endpoint, method):
('/samples', 'PATCH', ['created_at', 'modified_at']),
('/studies', 'POST', ['created_at', 'modified_at']),
('/studies', 'PATCH', ['created_at', 'modified_at']),
('/outcomes', 'PATCH', ['created_at', 'modified_at']),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about ('/outcomes', 'POST', ['created_at', 'modified_at'])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@znatty22 znatty22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@parimalak parimalak merged commit 883f222 into master Mar 19, 2018
@dankolbman dankolbman deleted the outcome-resource branch March 19, 2018 19:21
@dankolbman dankolbman mentioned this pull request Apr 2, 2018
@dankolbman dankolbman removed the ready-for-review This PR needs a review label May 7, 2018
alubneuski pushed a commit that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants