-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update Enketo kwargs arguments #1825
Conversation
Could we please also add/update tests for this scenario(if possible)... A bit scary that we didn't notice that passing Ideally the test would ensure anonymous users can make submissions via the enketo url |
@@ -352,7 +352,7 @@ def test_member_sees_orgs_added_to(self): | |||
request = self.factory.get('/', **self.extra) | |||
response = view(request) | |||
self.assertEqual(response.status_code, 200) | |||
self.assertEqual(response.data, [expected_data]) | |||
self.assertEqual(dict(response.data[0]), expected_data) |
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.
Why did we have to change this ?
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.
yeah for some reason, the response_data returned an OrderedDict object.
I didnt see the correlation with the changes made however.
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.
Mhh okay, was the test failing because of it ?
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.
lemme confirm this
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.
For clarification, this change occurs because as a result of a sorting issue and does not fail because of the changes to the enketo kwargs
130006b
to
e942a3b
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.
Please rebase with master @WinnyTroy
e942a3b
to
cbf10e1
Compare
closes #1824