-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
|
||
def test_patch_bad_input(self): | ||
""" | ||
Test updating an existing participant with invalid input |
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.
Needs to be updated.
OUTCOMES_LIST_URL = 'api.outcomes_list' | ||
|
||
|
||
class OutcomeTest(FlaskTestCase): |
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.
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.
7b9d257
to
db6ff73
Compare
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.
Looks good!
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.
I think you're missing a relations test for outcome
in test_api.py. In:
def test_relations(self, client, entities, resource, field)
tests/test_api.py
Outdated
@@ -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']), |
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.
What about ('/outcomes', 'POST', ['created_at', 'modified_at'])
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.
👍
7c03543
to
665d9f2
Compare
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.
👍
Added outcome resources and schemas
Updated tests for outcome resource