Repository navigation
Add new GLS shipit API support - #190
DylannCordel wants to merge 2 commits into
Conversation
|
Tests fail because GLS does not provide a testing AppKey / Secret associated with a test ContactId. @florian-dacosta I dunno how you want to manage it ? Maybe akretion could create a test account and ask GLS to associate it with a test Contact ID ? In this case, you'll just have to update credential_demo.py with valid data. |
|
Hello, About the implementation, we were now trying to switch on the pydantic way to implement it (example here : https://github.com/akretion/roulier/tree/master/roulier/carriers/dpd_fr ) About the tests, I am not sure the best way to go is to test the real api. We had a lot of issue in the past because the api was not accessible, blocking randomly the CI... Maybe we can just test the method and mock the call when needed ? |
|
"Ship-it" appears to be the new API from GLS; they plan to phase out the older ones, if I understood correctly what a representative from the GLS team indicated to us—as well as to our mutual clients. Ok I'll recode tests with mocking or real API depending credentials set, and refactor with pydantic 👍 |
Doc: https://dev-portal.gls-group.net/docs/shipit-farm/1/overview