Skip to content
Myr

__file__

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 590ce29 · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:tests/test_requests.py+4 added-4 removed
290 unmodified lines
291292 post1 = post(url, data={'some': 'data'})293 self.assertEqual(post1.status_code, 200)294295 with open('test_requests.py') as f:295 with open(__file__) as f:296 post2 = post(url, files={'some': f})297 self.assertEqual(post2.status_code, 200)298299 post3 = post(url, data='[{"some": "json"}]')
3 unmodified lines
303 def test_POSTBIN_GET_POST_FILES_WITH_PARAMS(self):304305 for service in SERVICES:306307 with open('test_requests.py') as f:307 with open(__file__) as f:308 url = service('post')309 post1 = post(url,310 files={'some': f},311 data={'some': 'data'})
6 unmodified lines
318 for service in SERVICES:319320 url = service('post')321322 with open('test_requests.py') as f:322 with open(__file__) as f:323324 post2 = post(url,325 files={'some': f},326 headers = {'User-Agent': 'requests-tests'})326 headers={'User-Agent': 'requests-tests'})327328 self.assertEqual(post2.status_code, 200)329330
503 unmodified lines