Skip to content
Myr

test_can_send_bytes_bytearray_objects_with_files test now uses string input, not float.

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

authored by Rasmus Scholer (TimelineX) · committed by Rasmus Scholer (TimelineX) · parent 326f77d · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:test_requests.py+1 added-1 removed
935 unmodified lines
936 assert 'multipart/form-data' in p.headers['Content-Type']937938 def test_can_send_bytes_bytearray_objects_with_files(self):939 # Test bytes:940 data = {'a': 0.0}940 data = {'a': 'this is a string'}941 files = {'b': b'foo'}942 r = requests.Request('POST', httpbin('post'), data=data, files=files)943 p = r.prepare()944 assert 'multipart/form-data' in p.headers['Content-Type']
671 unmodified lines