Skip to content
Myr

fix broken 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 ed9004f · 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
630 unmodified lines
631632 post1 = requests.post(url, data={'some': 'data'})633 assert post1.status_code == 200634635 with open('requirements.txt') as f:635 with open('Pipfile') as f:636 post2 = requests.post(url, files={'some': f})637 assert post2.status_code == 200638639 post4 = requests.post(url, data='[{"some": "json"}]')
51 unmodified lines
691692 post1 = requests.post(url, data={'some': 'data'})693 assert post1.status_code == 200694695 with open('requirements.txt') as f:695 with open('Pipfile') as f:696 post2 = requests.post(url, data={'some': 'data'}, files={'some': f})697 assert post2.status_code == 200698699 post4 = requests.post(url, data='[{"some": "json"}]')
28 unmodified lines
728 assert found_json == {'some': 'data'}729730 def test_conflicting_post_params(self, httpbin):731 url = httpbin('post')732 with open('requirements.txt') as f:732 with open('Pipfile') as f:733 pytest.raises(ValueError, "requests.post(url, data='[{\"some\": \"data\"}]', files={'some': f})")734 pytest.raises(ValueError, "requests.post(url, data=u('[{\"some\": \"data\"}]'), files={'some': f})")735736 def test_request_ok_set(self, httpbin):
1559 unmodified lines