Commit Graph

2118 Commits

Author SHA1 Message Date
Emmanuel Cazenave a71b04b247 gesbac: use range() instead of xrange() (#38781) 2020-01-29 10:45:25 +01:00
Emmanuel Cazenave 069c2e7d62 jenkins: run tests against python3 (#38781) 2020-01-29 10:30:47 +01:00
Emmanuel Cazenave 00b46fc360 setup: use cmis-maykin in python install (#38781) 2020-01-29 10:30:47 +01:00
Emmanuel Cazenave 24ee622c2c setup: delete print statement (#38781) 2020-01-29 10:30:47 +01:00
Emmanuel Cazenave ae09ae97b6 use json_loads() instead of json.loads() (#38781)
json.loads expects str in python >= 3, < 3.6.
2020-01-29 10:30:47 +01:00
Emmanuel Cazenave 5fe94ee3e6 oxyd: use force_text on binary content (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 5e25419aed choosit: use string_types instead of basetring (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave b58c993000 sms: make error messages indifferent in py2/py3 (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave b4fb17bc50 test_opengis: mock response content as bytes (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 498a704c3d opengis: force coordinates precision to six digits (#39197) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 7e58546c3a test_requests: mock response content as bytes (#38781)
And make test indifferent to bytes vs str repr().
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 52da067cef utils: ensure bytes interface over http cached response content (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 37c0c3b6a0 test_api_access: make test indifferent to bytes vs str repr() length (#38781)
In py3 'reponse_content' and 'body' are bytes, so repr() produces and extra
'b' character comparing to repr() on a bytestring in py2.
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 9ab3ee7bf8 views: pass decoded payload to the logger (#38781)
It will utlimately be serialized in JSON, so we don't want to keep
it as bytes.
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 723b1e532a test/wcs: read/write files in binary mode when pickling (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 85676130c2 test_utils_conversion: read files in binary mode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 3b6486d5cd toulouse_axel: expand dict view (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 8d90b34d2b toulouse_axel: use force_text() on ET.tostring() results (#38781)
ET.tostring produces bytes in py3.
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave f7fc09ac18 test_tlmcom: compare binary content to binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 39107f61dc pbx: use string_types instead of basestring (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave a8cd830419 test_templatetags: use inspect.isfunction in py3 (#38781)
In py2 inspect.ismethod returns bound or unbound method
whereas is py3 it return only bound method.
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave ae0d8e30f4 tcl: expand dict view (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 32a85de68f test_solis: compare binary data to binary string (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 51c0a5e066 solis: expand filter object (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 2874a2b9ba solis: pass text to re.sub (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 1812670c94 test_soap: use repr() to check error message (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 438f253eda test_soap: mock responses withs binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 48a71687cc test okina: compare binary content to binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave b75fa5785d okina: use key arg in sort() (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 1f1c5232d8 nancypoll: use builtin next() (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 9f37c9d715 nancypoll: pass text data to csv.reader in py3 (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave dc7bcfe99e conftest: pass binary data to BytesIO (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 9d0629576e test meyzieu_newsletter: use values() instead of itervalues() (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 5a64a916d2 meyzieu_newsletter: expand dict view (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 498440c72f test mdel: don't rely repr() to check exception messagee (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 9cfd4990ee test mdel: xml find with appropriate namespace (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave d3c9299e4e test mdel: pass binary data to base64 encode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave cde9a2f1ed test manager: compare binary content to binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 1b9e0ca292 lille_urban_card: expand dict view (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 16836c5e26 test jsonresponse: compare binary content to binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 8d277a42d7 test jobs: read files in binary mode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave b56d0f734e test import export: read/write files in binary mode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 532011fffc export_json: use force_text() on b64 bytes (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 6a85a58114 test sftp: use force_text() instead of decode() (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 74ead60c38 sftp: store private key as text (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave d25dfd53e1 sftp: wraps private key with TextIOWrapper (#38781)
paramiko expects a text interface to read the private key :
https://github.com/paramiko/paramiko/pull/1343/commits
2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 6a5aaa907c sftp: don't cast bytestring into string (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 1fe9040b73 test iparapheur: mock responses as binary data (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 6af2012a69 iparapheur: use force_text before string interpolation (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 2a42e35d34 gesbac: use TextIOwrapper to handle latin-1 csv files (#38781) 2020-01-29 10:30:46 +01:00