[FIX] website: make test works with more website than the data ones
This test was raising an assert error if the DB has other websites than the data/demo ones. As we have a new module in Odoo 13.0 (https://github.com/odoo/design-themes/pull/178) which is creating 25 websites, and since the design-themes runbot is now running tests, we were having a red design-themes runbot. closes odoo/odoo#39008 X-original-commit: 5c7b446363fbec7b2a76a579794e0fac20d05271 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
@@ -50,7 +50,7 @@ class TestGetCurrentWebsite(TransactionCase):
|
||||
self.assertEqual(Website._get_current_website_id('', country3.id), website2.id)
|
||||
|
||||
# CASE: no domain, wrong country: get first
|
||||
self.assertEqual(Website._get_current_website_id('', country4.id), website1.id)
|
||||
self.assertEqual(Website._get_current_website_id('', country4.id), Website.search([]).sorted('country_group_ids')[0].id)
|
||||
|
||||
# CASE: no domain, multiple country: get first
|
||||
self.assertEqual(Website._get_current_website_id('', country5.id), website1.id)
|
||||
|
||||
Reference in New Issue
Block a user