Skip to content

Commit c0f4798

Browse files
[IMP] delivery_gls_asm: Fix tests by forcing service to 37 [ECONOMY]
1 parent e3cc89c commit c0f4798

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

delivery_gls_asm/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# from . import test_delivery_gls_asm
1+
from . import test_delivery_gls_asm

delivery_gls_asm/tests/test_delivery_gls_asm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def setUpClass(cls):
2222
"delivery_type": "gls_asm",
2323
"product_id": cls.shipping_product.id,
2424
"prod_environment": False,
25+
"gls_asm_service": "37",
2526
}
2627
)
2728
cls.product = cls.env["product.product"].create(
@@ -46,6 +47,10 @@ def setUpClass(cls):
4647
cls.picking = cls.sale_order.picking_ids
4748
cls.picking.move_ids.quantity = 20
4849
cls.picking.number_of_packages = 1
50+
cls.company = cls.env.user.company_id
51+
cls.company.partner_id.street = "Avinguda Diagonal, 405"
52+
cls.company.partner_id.city = "Barcelona"
53+
cls.company.partner_id.zip = "08008"
4954

5055
def test_01_gls_picking_confirm_simple(self):
5156
"""The picking is confirm and the shipping is recorded to GLS"""

0 commit comments

Comments
 (0)