Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
cb5ba189 by Cédric Krier at 2022-12-22T01:28:24+01:00
Add random description in MyGLS scenario
When the scenario is run too much time in parallel, MyGLS API raises an error
for "Same request sent 5 times within last 5 minutes."
Closes #11956
- - - - -
1 changed file:
-
modules/stock_package_shipping_mygls/tests/scenario_stock_package_shipping_mygls.rst
Changes:
=====================================
modules/stock_package_shipping_mygls/tests/scenario_stock_package_shipping_mygls.rst
=====================================
@@ -5,6 +5,7 @@
Imports::
>>> import os
+ >>> import uuid
>>> from decimal import Decimal
>>> from proteus import Model, Wizard
@@ -184,6 +185,7 @@
>>> shipment, = sale.shipments
>>> shipment.click('assign_force')
>>> shipment.click('pick')
+ >>> shipment.shipping_description = str(uuid.uuid4())
>>> pack = shipment.packages.new(type=box)
>>> pack_moves = pack.moves.find([])
>>> pack.moves.append(pack_moves[0])
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/cb5ba189fd1e344eb536dce9a7e3b1d7e18a654e
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/cb5ba189fd1e344eb536dce9a7e3b1d7e18a654e
You're receiving this email because of your account on foss.heptapod.net.