Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] tests: make post_install the default #764

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions test_themes/tests/test_crawl.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo.tests import HttpCase, tagged
from odoo.tests import HttpCase


@tagged('post_install', '-at_install')
class Crawler(HttpCase):
def test_01_crawl_every_themes(self):
""" Crawl every website (and so every themes) to ensure all themes can
Expand Down
3 changes: 1 addition & 2 deletions test_themes/tests/test_new_page_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re

from odoo.addons.website.tools import MockRequest
from odoo.tests import tagged, TransactionCase
from odoo.tests import TransactionCase
from odoo.tools import escape_psql

_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -102,7 +102,6 @@
}


@tagged('post_install', '-at_install')
class TestNewPageTemplates(TransactionCase):

def test_template_names(self):
Expand Down
5 changes: 3 additions & 2 deletions theme_test_custo/tests/test_theme_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from odoo.tests import HttpCase, tagged
from odoo.addons.website.tests.test_configurator import TestConfiguratorCommon


# TODO: `test_themes` tag should not be there, runbot config should be adapted
# to test this module too. There is a special config for the theme repo.
@tagged('post_install', '-at_install', 'test_themes')
@tagged('test_themes')
class Crawler(HttpCase):
def test_01_menu_hierarchies(self):
theme_custo = self.env.ref('base.module_theme_test_custo')
Expand All @@ -15,7 +16,7 @@ def test_01_menu_hierarchies(self):
theme_custo.with_context(load_all_views=True, apply_new_theme=True)._theme_load(website)
self.start_tour('/@/example', "theme_menu_hierarchies", login='admin')

@tagged('post_install', '-at_install')

class TestThemeConfigurator(TestConfiguratorCommon):
def test_website_theme_preview(self):
self.start_tour('/web#action=website.action_website_configuration', 'website_theme_preview', login="admin")