Skip to content
Myr

fix tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 6af9106 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • tests:+3 added−3 removed

1 file+3 added−3 removed

modified:tests/test_requests.py+3 added-3 removed
633 unmodified lines
634635 post1 = requests.post(url, data={'some': 'data'})636 assert post1.status_code == 200637638 with open('Pipfile') as f:638 with open('requirements.txt') as f:639 post2 = requests.post(url, files={'some': f})640 assert post2.status_code == 200641642 post4 = requests.post(url, data='[{"some": "json"}]')
51 unmodified lines
694695 post1 = requests.post(url, data={'some': 'data'})696 assert post1.status_code == 200697698 with open('Pipfile') as f:698 with open('requirements.txt') as f:699 post2 = requests.post(url, data={'some': 'data'}, files={'some': f})700 assert post2.status_code == 200701702 post4 = requests.post(url, data='[{"some": "json"}]')
28 unmodified lines
731 assert found_json == {'some': 'data'}732733 def test_conflicting_post_params(self, httpbin):734 url = httpbin('post')735 with open('Pipfile') as f:735 with open('requirements.txt') as f:736 pytest.raises(ValueError, "requests.post(url, data='[{\"some\": \"data\"}]', files={'some': f})")737 pytest.raises(ValueError, "requests.post(url, data=u('[{\"some\": \"data\"}]'), files={'some': f})")738739 def test_request_ok_set(self, httpbin):
1633 unmodified lines