diff --git a/roulier/carriers/mondialrelay_fr/tests/__init__.py b/roulier/carriers/mondialrelay_fr/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label.yaml b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label.yaml new file mode 100644 index 0000000..bb96de8 --- /dev/null +++ b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label.yaml @@ -0,0 +1,908 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: GET + uri: https://api.mondialrelay.com/Web_Services.asmx?WSDL + response: + body: + string: "\r\n\r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n" + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c4000683bb76fde-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 09:59:03 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Set-Cookie: + - dtCookie=v_4_srv_2_sn_A96DE31BCCB2DAE082E609E3C9E6F7CC_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + Path=/; Domain=.mondialrelay.com + - __cf_bm=BoW70PvXOm7Mf9_DkiwL82caHuPblmnd0vTjJ1AaMzY-1726480743-1.0.1.1-UdE0Kbg6ffIwo88blZ7QQGLFdiY3ABbzirWD_AvSw1PIQzrKVU9kuRPBUSZaLPrpM_XLqoiAZwi6A54hWchRpw; + path=/; expires=Mon, 16-Sep-24 10:29:03 GMT; domain=.mondialrelay.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +- request: + body: ' + + BDTEST13RELHOMFRAkretion27 + rue Henri RollandBatiment BVilleurbanne69100FR+33482538457FRHugo6 + Place des VosgesParis75004FR+33600000000hugo.victor@example.com120010EUREURFRAUTO59CD51C5270D4A696BABF634E21F2B44' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - text/xml; charset=utf-8 + Cookie: + - dtCookie=v_4_srv_2_sn_A96DE31BCCB2DAE082E609E3C9E6F7CC_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + __cf_bm=BoW70PvXOm7Mf9_DkiwL82caHuPblmnd0vTjJ1AaMzY-1726480743-1.0.1.1-UdE0Kbg6ffIwo88blZ7QQGLFdiY3ABbzirWD_AvSw1PIQzrKVU9kuRPBUSZaLPrpM_XLqoiAZwi6A54hWchRpw + SOAPAction: + - '"http://www.mondialrelay.fr/webservice/WSI2_CreationEtiquette"' + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: POST + uri: https://api.mondialrelay.com/Web_Services.asmx + response: + body: + string: 050018822/ww2/PDF/StickerMaker2.aspx?ens=BDTEST1311&expedition=50018822&lg=FR&format=A4&crc=6A5E9AB78D43DB53A6FDE89A4EF80F86 + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c40006939679ed1-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 09:59:03 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +version: 1 diff --git a/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label_return.yaml b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label_return.yaml new file mode 100644 index 0000000..106e9f0 --- /dev/null +++ b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_label_return.yaml @@ -0,0 +1,908 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: GET + uri: https://api.mondialrelay.com/Web_Services.asmx?WSDL + response: + body: + string: "\r\n\r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n" + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c4002ef4afe6f13-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 10:00:47 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Set-Cookie: + - dtCookie=v_4_srv_8_sn_419423C70681D5695A8D3DB877993A5E_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + Path=/; Domain=.mondialrelay.com + - __cf_bm=.LP1UaBbjxf1xHBZc8Ru8Vz8pY_UtWSxX7MnRGtTJWc-1726480847-1.0.1.1-l0L6qnTfXPhNbRoe7cSJFrXCKI_CrwF7Dq98kVuEGHxn0T0xw_1hC9iHjom2_In5RUs7r0ugQkLySqHByuYE3A; + path=/; expires=Mon, 16-Sep-24 10:30:47 GMT; domain=.mondialrelay.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +- request: + body: ' + + BDTEST13RELLCCFRAkretion27 + rue Henri RollandBatiment BVilleurbanne69100FR+33482538457FRHugo6 + Place des VosgesParis75004FR+33600000000hugo.victor@example.com120010EUREURFRAUTO20CF676EB928CA308614A23744274F10' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1073' + Content-Type: + - text/xml; charset=utf-8 + Cookie: + - dtCookie=v_4_srv_8_sn_419423C70681D5695A8D3DB877993A5E_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + __cf_bm=.LP1UaBbjxf1xHBZc8Ru8Vz8pY_UtWSxX7MnRGtTJWc-1726480847-1.0.1.1-l0L6qnTfXPhNbRoe7cSJFrXCKI_CrwF7Dq98kVuEGHxn0T0xw_1hC9iHjom2_In5RUs7r0ugQkLySqHByuYE3A + SOAPAction: + - '"http://www.mondialrelay.fr/webservice/WSI2_CreationEtiquette"' + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: POST + uri: https://api.mondialrelay.com/Web_Services.asmx + response: + body: + string: 050018827/ww2/PDF/StickerMaker2.aspx?ens=BDTEST1311&expedition=50018827&lg=FR&format=A4&crc=D5346B784E27437E6BC16348E9F69B03 + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c4002f01c9902db-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 10:00:47 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +version: 1 diff --git a/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_pickup_site.yaml b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_pickup_site.yaml new file mode 100644 index 0000000..98f2f15 --- /dev/null +++ b/roulier/carriers/mondialrelay_fr/tests/cassettes/test_mondialrelay/test_mondialrelay_pickup_site.yaml @@ -0,0 +1,1047 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: GET + uri: https://api.mondialrelay.com/Web_Services.asmx?WSDL + response: + body: + string: "\r\n\r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n + \ \r\n \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n + \ \r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n + \ \r\n \r\n \r\n" + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c400754799001bd-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 10:03:47 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Set-Cookie: + - dtCookie=v_4_srv_8_sn_ADB60433C5AB45F4D191960A68C5DC26_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + Path=/; Domain=.mondialrelay.com + - __cf_bm=Le8H.pCspf4IRdAVJX6hqegApT5GKez.Td803XJGjr4-1726481027-1.0.1.1-m7tXnt7MaXqymI5FiRemHN8Sn7DIBWO.WnFbxU2uc8ZmifVOpEFSGiYOcdgc4kiKTFK3Yek0rxZUrpZu4esGhA; + path=/; expires=Mon, 16-Sep-24 10:33:47 GMT; domain=.mondialrelay.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +- request: + body: ' + + BDTEST13FR691000DD525D45E2907B422B4EA8D79C38D8B' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '470' + Content-Type: + - text/xml; charset=utf-8 + Cookie: + - dtCookie=v_4_srv_8_sn_ADB60433C5AB45F4D191960A68C5DC26_perc_100000_ol_0_mul_1_app-3A8e610a2cbb08d829_1; + __cf_bm=Le8H.pCspf4IRdAVJX6hqegApT5GKez.Td803XJGjr4-1726481027-1.0.1.1-m7tXnt7MaXqymI5FiRemHN8Sn7DIBWO.WnFbxU2uc8ZmifVOpEFSGiYOcdgc4kiKTFK3Yek0rxZUrpZu4esGhA + SOAPAction: + - '"http://www.mondialrelay.fr/webservice/WSI4_PointRelais_Recherche"' + User-Agent: + - Zeep/4.2.1 (www.python-zeep.org) + method: POST + uri: https://api.mondialrelay.com/Web_Services.asmx + response: + body: + string: 0026291EPICERIE FLACHET VILLEURBANNE 36 RUE FLACHET 69100VILLEURBANNE FR45,768568004,88957100000900200000000000090020000000000009002000000000000900200000000000090011001600200010002000000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=026291&pays=FR&crc=4E9334B8088E030B704709BAD3A2F8AFhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=026291&pays=FR&crc=1CBEF8276C2F88FB3AFF963B2D1CD1A0889027304MON COIN COUTURE VILLEURBANNE 283 COURS EMILE-ZOLA 69100VILLEURBANNE FR45,767516404,89147180001000120014001830100012001400183010001200140018301000120014001830100012001400183010001200000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=027304&pays=FR&crc=45A21A9CF06B3D1311F9CB6A007E4AC3https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=027304&pays=FR&crc=7C21F1BEEE7043F66D4A7FC8D190A2C3937097356CORDONNERIE DES GRATTE CIEL 79 RUE ANATOLE FRANCE 69100VILLEURBANNE FR45,767753504,87671990000900120015001730090012001500173009001200150017300900120015001730150017300000000009001200150017300000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=097356&pays=FR&crc=C56587B58A3967DE6B685AF5869CF547https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=097356&pays=FR&crc=0E4449EC9D8E3E190D2608608A62552A1034012794MTS EXOTIQUE 47 RUE DU 1ER MARS 1943 69100VILLEURBANNE FR45,767215004,88979500000930120014001930093012001400193009301200140019300930120014001930100012001400200010001200140020000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=012794&pays=FR&crc=58CA94C7617B4CB5F027572F4307A5A4https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=012794&pays=FR&crc=1BACB5D73EE74449A048DB395AA076AF1236022213CASINO SUPERMARCHE VILLEURBANNE150 RUE DU 4 AOUT 1789 69100VILLEURBANNE FR45,764104204,89038710000700210000000000070021000000000007002100000000000700210000000000070021000000000007002100000000000700210000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=022213&pays=FR&crc=704E8FF6ED76DB099260914AA693BB7Ahttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=022213&pays=FR&crc=3DCF412C6CB6D709EC70A0D2AD3F5D961274028496ABI SHOP VILLEURBANNE 146 BIS COURS TOLSTOI 69100VILLEURBANNE FR45,760655504,88554110001000220000000000100022000000000010002200000000001000220000000000100022000000000010002200000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=028496&pays=FR&crc=29B0317F32C8FEF24B370C1F55282FABhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=028496&pays=FR&crc=52D8035995D407D1E4E3F69C9D0E3FAE1286001825TABAC PRESSE FANTASIO 22 RUE PAUL VERLAINE 69100VILLEURBANNE FR45,767440004,88013100000900190000000000090019000000000009001900000000000900190000000000090019000000000009001900000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=001825&pays=FR&crc=86D3FF1087129CAA53703CF632442A75https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=001825&pays=FR&crc=02673B4089734362B59586904D1009671409034792ISHOP69 206 AVENUE ROGER SALENGRO 69100VILLEURBANNE FR45,782207004,88953000000900185000000000090018500000000009001850000000000900185000000000090018500000000009001850000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=034792&pays=FR&crc=93012523D7F6438F878E8EAD4F8C8D4Dhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=034792&pays=FR&crc=2786B639DBE3CAE431EC302437A8F2821634005680BUREAU COPY 31 COURS ANDRE PHILIP 69100VILLEURBANNE FR45,772844504,86304100000900123014001830090012301400183009001230140018300900123014001830090012301400183009301300000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=005680&pays=FR&crc=6E33CF14B9167BD8C11824D7E6692593https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=005680&pays=FR&crc=89D5C6D640A40110FCC0A628EA2D54D21739077330BRICORAMA VILLEURBANNE 57 AVENUE ST EXUPERY 69100VILLEURBANNE FR45,757862004,88226000000900123013301900090012301330190009001230133019000900123013301900090012301330190009001900000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=077330&pays=FR&crc=9C38EBA937B4E61997F3009637D730D6https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=077330&pays=FR&crc=F0304ADA9BB2809AECA0976950B7B87E1782027891LOCKER LAVERIE SPEED QUEEN VILL55 COURS TOLSTOI 69100VILLEURBANNE FR45,763424004,8758860000LOCKER0700220000000000070022000000000007002200000000000700220000000000070022000000000007002200000000000700220000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=027891&pays=FR&crc=FD2C6072942E1F180D69F1A3C3869B51https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=027891&pays=FR&crc=1A6B9B3E20D82894E279C14AF099FCA11828021166LOCKER LAVERIE AUTO NOTRE DAME 25 RUE NOTRE DAME 69006LYON FR45,765145804,8679921000LOCKER0700200000000000070020000000000007002000000000000700200000000000070020000000000007002000000000000700200000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=021166&pays=FR&crc=D2D769C037C250597F7A5789FCA157C5https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=021166&pays=FR&crc=FD7CAC1870002DFEA3A03EED018F12631867026222VAPO VIRIDIS SHOP VILLEURBANNE 48 RUE DU 8 MAI 1945 69100VILLEURBANNE FR45,763927404,87264430000700120014002300070012001400230007001200140023000700120014002300070012001400230007001200140023000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=026222&pays=FR&crc=BEA6B01FD6A5940100793A2BA6E4FD6Chttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=026222&pays=FR&crc=788ABB02FBABBB6A93D0662FAD2C670C1897049751INFORMATIQUE ET MULTISERVICES 9 AVENUE GENERAL LECLERC 69100VILLEURBANNE FR45,758840004,89098900001000120015001800100012001500180010001200150018001000120015001800100012001500180010001300000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=049751&pays=FR&crc=6FABAFD971559E387A441A74ACCA4901https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=049751&pays=FR&crc=B34BEA1655A6D89E291D46DD2429D3D02035092476LATELIER ESPAGNOL LYON3 2T COURS RICHARD-VITTON 69003LYON FR45,754116004,88488500001000120014002200100012001400220010001200140022001000120014002200100012001400220010001200140022000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=092476&pays=FR&crc=94AF3892136AFC888900623D600A5993https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=092476&pays=FR&crc=C0DA2EA8E1C8B3C01B1FCA507AE6F7302123020732LIBRAIRIE MY DEEN LYON 3 46 RUE SAINT-ANTOINE 69003LYON FR45,763115004,86906600001000190000000000100019000000000010001900000000001000190000000000100019000000000010001900000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020732&pays=FR&crc=5AE5FE6064ED16F4BC8F5F57B9C30AC2https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020732&pays=FR&crc=B1053609A8D2498FFA5AEC422D0C8C092190036066LOCKER LIDL LYON 278 COURS LAFAYETTE 69003LYON FR45,763576004,8664590000LOCKER0830203000000000083020300000000008302030000000000830203000000000083020300000000008302030000000000830121500000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=036066&pays=FR&crc=7BBC228FFBF2458341CF8C471F4E9FB7https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=036066&pays=FR&crc=02F24CA8D3795FF6EA142B94B96330372235020548PERLE DU MONDE LYON 3 27 COURS RICHARD-VITTON 69003LYON FR45,753778504,88918360001000190000000000100019000000000010001900000000001000200000000000100020000000000010002000000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020548&pays=FR&crc=79FA24F2FDDC8845133CF5E38B2F6CAEhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020548&pays=FR&crc=59D6D1EEF5BB0206588EF8B15642BBD42256006699TABAC PRESSE BISTRO 49 COURS RICHARD-VITTON 69003LYON FR45,753640004,89110600000530193000000000053019300000000005301930000000000530193000000000053019300000000006001930000000000600120000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=006699&pays=FR&crc=5F20F93BE6F5FDC1FD524C5F919800A5https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=006699&pays=FR&crc=C5E2BAED09B4062BC79524C84583607E2406020636FRANPRIX LYON 6 29 COURS VITTON 69006LYON FR45,769385004,85295800000800210000000000080021000000000008002100000000000800210000000000080021000000000008002100000000000900200000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020636&pays=FR&crc=2DE18210189263715C40582BD607FFD5https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020636&pays=FR&crc=9BACCE7FCDEC1B67B3C9D19A95222C542577020526LOCKER LAVERIE SEZE LYON 127 RUE DE SEZE 69006LYON FR45,769212204,8558092000LOCKER0600213000000000060021300000000006002130000000000600213000000000060021300000000006002130000000000600213000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020526&pays=FR&crc=7D7B5B1139545D6214FA436CA4DD71EAhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020526&pays=FR&crc=43309EA416A4BC056331A4402E6D2C232651020220CASINO SHOP LYON 3 38 AVENUE GEORGES POMPIDOU 69003LYON FR45,759208004,86678700000700223000000000070022300000000007002230000000000700223000000000070022300000000007002230000000000700223000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020220&pays=FR&crc=40E0A16F707B202A66605D08DB9C3E40https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020220&pays=FR&crc=D31F98290FBEC8549921FDA6E0B987672668020808LOCKER LAVERIE BUGEAUD LYON 6 127 RUE BUGEAUD 69006LYON FR45,767077704,8551238000LOCKER0645204500000000064520450000000006452045000000000645204500000000064520450000000006452045000000000645204500000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020808&pays=FR&crc=33B28A945B87240A2E78BAD79346701Ehttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020808&pays=FR&crc=3C941E28CA390DE0682A9ECDEF62F3AF2685020807LOCKER LAVERIE LAVADOU DR LONG 24 COURS DOCTEUR LONG 69003LYON FR45,748720504,8820792000LOCKER0700210000000000070021000000000007002100000000000700210000000000070021000000000007002100000000000700210000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=020807&pays=FR&crc=C0E690212E8AE33670ECEE9217FBE96Bhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=020807&pays=FR&crc=36893B67DB887BC09137CA42F41BC5A72690021781LOCKER INTERMARCHE TRONCHET LYO76 RUE TRONCHET 69006LYON FR45,770276804,8515721000LOCKER0830200000000000083020000000000008302000000000000830200000000000083020000000000008302000000000000900123000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=021781&pays=FR&crc=381D21AA3E8964CAB999689BBED7BA04https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=021781&pays=FR&crc=C3F1FB35E93A0D17A21F9AE10A3E71432723022263LOCKER LAV 25 LYON 3 250 RUE PAUL BERT 69003LYON FR45,756814004,8676817000LOCKER0700203000000000070020300000000007002030000000000700203000000000070020300000000007002030000000000700203000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=022263&pays=FR&crc=B41C6109DE82FAD9AB5D6E89517035AFhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=022263&pays=FR&crc=B68EBA3941DE91080769C864B2AF1DA22953021314LOCKER ECO LAVERIE PAUL BERT LY226 RUE PAUL BERT 69003LYON FR45,756996004,8651269000LOCKER0700203000000000070020300000000007002030000000000700203000000000070020300000000007002030000000000700203000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=021314&pays=FR&crc=E6FB43178D73C41B24AB00C4855DA89Bhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=021314&pays=FR&crc=51FF40E345FA46E70173E92B903F80B53032018197RETOUCHE LACASSAGNE LYON 3 71 AVENUE LACASSAGNE 69003LYON FR45,751805004,87194000000830180000000000083018000000000008301800000000000830180000000000083018000000000008301600000000000000000000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=018197&pays=FR&crc=A6F93E8AEF2B432DA0A2CE6B72D4BDBFhttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=018197&pays=FR&crc=6B0B235DFBFE4C8CC6DB98619F8B98D33122021029LOCKER CITY LAVERIE RUE DUGUESC103 RUE DUGUESCLIN 69006LYON FR45,768084304,8475499000LOCKER0700210000000000070021000000000007002100000000000700210000000000070021000000000007002100000000000700210000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=021029&pays=FR&crc=2176DD30821E308BDD357247610A2F4Chttps://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=021029&pays=FR&crc=F097C926AB20BF41246BD60368E49D623125023223LE PETIT CASINO LYON 6 9 RUE BARREME 69006LYON FR45,774428004,84456400000700220000000000070022000000000007002200000000000700220000000000070022000000000007002200000000000700220000000000https://ww2.mondialrelay.com/public/permanent/photo_relais.aspx?ens=CC______41&num=023223&pays=FR&crc=87C7F29B82B06B2577BD9970E5D9AA93https://ww2.mondialrelay.com/public/permanent/plan_relais.aspx?ens=BDTEST1311&num=023223&pays=FR&crc=8A72DB20D8993EA9BD63F8B8D88D86473241 + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8c4007553ed09eef-CDG + Cache-Control: + - private, max-age=0 + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - text/xml; charset=utf-8 + Date: + - Mon, 16 Sep 2024 10:03:47 GMT + Server: + - cloudflare + Server-Timing: + - dtSInfo;desc="1" + Transfer-Encoding: + - chunked + X-AspNet-Version: + - 4.0.30319 + X-Powered-By: + - ASP.NET + alt-svc: + - h3=":443"; ma=86400 + status: + code: 200 + message: OK +version: 1 diff --git a/roulier/carriers/mondialrelay_fr/tests/conftest.py b/roulier/carriers/mondialrelay_fr/tests/conftest.py new file mode 100644 index 0000000..9b6388b --- /dev/null +++ b/roulier/carriers/mondialrelay_fr/tests/conftest.py @@ -0,0 +1,6 @@ +# Copyright 2024 Akretion (http://www.akretion.com). +# @author Florian Mounier +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from ....tests.conftest import * # noqa diff --git a/roulier/carriers/mondialrelay_fr/tests/test_mondialrelay.py b/roulier/carriers/mondialrelay_fr/tests/test_mondialrelay.py new file mode 100644 index 0000000..92b243e --- /dev/null +++ b/roulier/carriers/mondialrelay_fr/tests/test_mondialrelay.py @@ -0,0 +1,72 @@ +# Copyright 2024 Akretion (http://www.akretion.com). +# @author Florian Mounier +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import pytest +from roulier import roulier +from ....helpers import merge + + +@pytest.fixture +def get_label_data(credentials, base_get_label_data): + return merge( + credentials["mondialrelay_fr"], + base_get_label_data, + { + "service": { + "product": "HOM", + "pickupMode": "REL", + "pickupSite": "AUTO", + "pickupCountry": "FR", + } + }, + ) + + +@pytest.fixture +def find_pickup_site_data(credentials, base_find_pickup_site_data): + return merge( + credentials["mondialrelay_fr"], + base_find_pickup_site_data, + ) + + +@pytest.mark.vcr() +def test_mondialrelay_label(get_label_data): + rv = roulier.get("mondialrelay_fr", "get_label", get_label_data) + assert "parcels" in rv + assert "label" in rv["parcels"][0] + label = rv["parcels"][0]["label"] + assert label["name"] == "label_url" + assert label["type"] == "url" + assert label["data"].startswith("https://www.mondialrelay.com") + + +@pytest.mark.vcr() +def test_mondialrelay_label_return(get_label_data): + rv = roulier.get( + "mondialrelay_fr", + "get_label", + merge( + get_label_data, + { + "service": { + "product": "LCC", + }, + }, + ), + ) + assert "parcels" in rv + assert "label" in rv["parcels"][0] + label = rv["parcels"][0]["label"] + assert label["name"] == "label_url" + assert label["type"] == "url" + assert label["data"].startswith("https://www.mondialrelay.com") + + +@pytest.mark.vcr() +def test_mondialrelay_pickup_site(find_pickup_site_data): + rv = roulier.get("mondialrelay_fr", "find_pickup_site", find_pickup_site_data) + assert "sites" in rv + assert len(rv["sites"]) > 0 + assert "name" in rv["sites"][0] diff --git a/roulier/tests/credentials_demo.py b/roulier/tests/credentials_demo.py index 4f5dabd..a13d581 100644 --- a/roulier/tests/credentials_demo.py +++ b/roulier/tests/credentials_demo.py @@ -5,8 +5,10 @@ """Copy this file to credentials.py and fill in your test credentials""" CREDENTIALS = { - "mondialrelay_fr": { # These are public test credentials - "login": "BDTEST13", - "password": "PrivateK", + "mondialrelay_fr": { + "auth": { # These are public test credentials + "login": "BDTEST13", + "password": "PrivateK", + } }, }