oca-ocb-test/odoo-bringout-oca-ocb-test_website/test_website/tests/test_website_page_properties.py
Ernad Husremovic d9452d2060 19.0 vanilla
2026-03-09 09:32:39 +01:00

27 lines
1 KiB
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import HttpCase, tagged
@tagged('-at_install', 'post_install')
class TestWebsitePageProperties(HttpCase):
def test_website_page_properties_common(self):
self.start_tour('/test_view', 'website_page_properties_common', login='admin')
def test_website_page_properties_can_publish(self):
self.start_tour('/test_website/model_item/1', 'website_page_properties_can_publish', login='admin')
def test_website_page_properties_website_page(self):
# Create a website page with a different URL to be tested for dependency
# tracking
self.env['website.page'].create({
'name': 'Base',
'type': 'qweb',
'arch': '<div><a href="/cool-page">Cool page</a></div>',
'key': 'test.cool_page',
'url': '/dependency_page',
'website_id': self.env['website'].search([], limit=1).id,
})
self.start_tour('/', 'website_page_properties_website_page', login='admin')