Skip to content

Conversation

@squirrelo
Copy link
Contributor

This fixes #1682 to properly make patch calls for tests.

data is now required, as without it the following is thrown and returned as part of the request:
ValueError('Body must not be None for method PATCH (unless allow_nonstandard_methods is true)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 82.866% when pulling d12b6bc on squirrelo:test-patch-calls into c93058d on biocore:master.

self.assertEqual(response.code, 200)
exp = {'status': 'success', 'message': ''}
self.assertEqual(loads(response.body), exp)
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the pass

@josenavas
Copy link
Contributor

1 small comment 👍

@squirrelo
Copy link
Contributor Author

Comment addressed, ready to go.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 82.872% when pulling 3dc2438 on squirrelo:test-patch-calls into c93058d on biocore:master.

@antgonza
Copy link
Member

@squirrelo, could you confirm that your changes are OK with the new portal changes? Thanks.

@squirrelo
Copy link
Contributor Author

Shouldn't have any issues since this just touches test code, but pulled in master and restarted tests to make sure.

@antgonza
Copy link
Member

Thanks, will merge once tests pass.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 82.881% when pulling e361f5b on squirrelo:test-patch-calls into c06bc90 on biocore:master.

@antgonza antgonza merged commit 3e255cb into qiita-spots:master Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find a way to test PATCH requests

4 participants