Skip to content

Commit

Permalink
Merge PR #173 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 17, 2023
2 parents 670761b + 2ec53bf commit 1da0ed0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base_bank_from_iban/tests/test_base_bank_from_iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ class TestBaseBankFromIban(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(TestBaseBankFromIban, cls).setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
)
cls.country_spain = cls.env.ref("base.es")
cls.bank = cls.env["res.bank"].create(
{"name": "BDE", "code": "9999", "country": cls.country_spain.id}
Expand Down
14 changes: 14 additions & 0 deletions base_iso3166/tests/test_iso3166.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@


class TestBaseIso3166(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
)

def test_iso_3166(self):
country = self.env.ref("base.ad")
self.assertEqual(country.code_alpha3, "AND")
Expand Down
10 changes: 10 additions & 0 deletions product_fao_fishing/tests/test_product_fao_fishing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ class TestProductFaoFishing(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
)
cls.product_attribute = cls.env.ref("product_fao_fishing.fao_fishing_area")
cls.fao_technique_attribute = cls.env.ref(
"product_fao_fishing.fao_fishing_technique"
Expand Down

0 comments on commit 1da0ed0

Please sign in to comment.