Skip to content
Myr

update 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 a9d05f0 · 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.

Trailers

  • Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

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
632 unmodified lines
633634 post1 = requests.post(url, data={'some': 'data'})635 assert post1.status_code == 200636637 with open('requirements.txt') as f:637 with open('Pipfile') as f:638 post2 = requests.post(url, files={'some': f})639 assert post2.status_code == 200640641 post4 = requests.post(url, data='[{"some": "json"}]')
51 unmodified lines
693694 post1 = requests.post(url, data={'some': 'data'})695 assert post1.status_code == 200696697 with open('requirements.txt') as f:697 with open('Pipfile') as f:698 post2 = requests.post(url, data={'some': 'data'}, files={'some': f})699 assert post2.status_code == 200700701 post4 = requests.post(url, data='[{"some": "json"}]')
28 unmodified lines
730 assert found_json == {'some': 'data'}731732 def test_conflicting_post_params(self, httpbin):733 url = httpbin('post')734 with open('requirements.txt') as f:734 with open('Pipfile') as f:735 pytest.raises(ValueError, "requests.post(url, data='[{\"some\": \"data\"}]', files={'some': f})")736 pytest.raises(ValueError, "requests.post(url, data=u('[{\"some\": \"data\"}]'), files={'some': f})")737738 def test_request_ok_set(self, httpbin):
1651 unmodified lines