Skip to content

Commit 2e3ec54

Browse files
[FIX] delivery_roulier fix tests
1 parent 195ae9e commit 2e3ec54

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

delivery_roulier/tests/test_delivery_roulier.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ def setUp(self):
4141
delivery_product = self.env["product.product"].create(
4242
{"name": "test shipping product", "type": "service"}
4343
)
44-
self.test_carrier = self.env["delivery.carrier"].create(
45-
{
46-
"name": "Test Carrier",
47-
"delivery_type": "test",
48-
"product_id": delivery_product.id,
49-
}
50-
)
5144
self.account = self.env["carrier.account"].create(
5245
{
5346
"name": "Test Carrier Account",
@@ -56,6 +49,14 @@ def setUp(self):
5649
"password": "test",
5750
}
5851
)
52+
self.test_carrier = self.env["delivery.carrier"].create(
53+
{
54+
"name": "Test Carrier",
55+
"delivery_type": "test",
56+
"product_id": delivery_product.id,
57+
"carrier_account_id": self.account.id,
58+
}
59+
)
5960
partner = self.env["res.partner"].create(
6061
{
6162
"name": "Carrier label test customer",

test-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
odoo-test-helper
12
vcrpy
23
vcrpy-unittest

0 commit comments

Comments
 (0)