Commit Graph

23 Commits

Author SHA1 Message Date
Lauréline Guérin 39d29d19c1
misc: fix pointless-statement pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin c1074b68fc
misc: fix unused-import pylint error (#62099) 2022-03-25 09:03:35 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin eeeea14a5d
django22: import django.urls (#49188) 2021-01-04 14:05:14 +01:00
Nicolas Roche cfe5cad527 sms: add description to send endpoint (#45829) 2020-09-14 13:05:13 +02:00
Nicolas Roche 9a3d589d20 tests: move requests/responses log sizes test (#42187) 2020-04-29 14:43:41 +02:00
Emmanuel Cazenave b58c993000 sms: make error messages indifferent in py2/py3 (#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
Nicolas Roche fc77a6e364 logging: add max sizes to connector log parameters (#36596) 2019-10-25 14:41:44 +02:00
Nicolas Roche f4544e64b9 logging: rename LOGGED_REQUESTS_MAX_SIZE parameter (#36596) 2019-10-25 14:41:26 +02:00
Nicolas Roche 1dee5d1c31 sms: use self.requests to increase logging (#21464) 2019-10-25 14:14:53 +02:00
Nicolas Roche f469bc8cdc logging: add LOGGED_REQUEST_MAX_SIZE settings 2019-10-01 17:19:46 +02:00
Thomas NOËL 18b3a6bf5f signature: forbid arguments after signature (#35059) 2019-07-25 22:45:52 +02:00
Frédéric Péters 4d0f124a56 general: use full path to modules (#15689) 2017-12-20 12:17:41 +01:00
Thomas NOËL 3c8df18794 tests: use django-webtest instead of webtest.TestApp (#19881) 2017-11-06 15:02:51 +01:00
Thomas NOËL fb3d37c301 always trust services from settings.KNOWN_SERVICES (#12391) 2016-12-17 17:46:20 +01:00
Benjamin Dauvergne 41a5bbaa03 sms: improve error handling of all providers with APIError (fixes #13499)
All specific exception classes have been removed, sending was fixed in orange,
oxyd and choosit providers; when possible failure for each destination is
returned.
2016-10-21 10:16:28 +02:00
Frédéric Péters e644b3cfc8 general: add generic endpoint view (#11204) 2016-06-09 14:44:42 +02:00
Thomas NOËL 1364a95ea4 tests/api_access: correctly tests 403, without raise=1 (#8410) 2015-09-30 10:13:10 +02:00
Serghei Mihai a543abe80d tests: additional api access cases (#7959) 2015-09-09 15:53:19 +02:00
Serghei Mihai bfec6d1255 fix key type in request signing (#7866)
Tests for anonymous and signed api access added
2015-08-04 17:39:26 +02:00