Skip to content
Snippets Groups Projects
Commit 1bf90d89 authored by Romain Derie's avatar Romain Derie Committed by fw-bot
Browse files

[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#39002

X-original-commit: 5c7b4463
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent 03584cea
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment