Mirrors Phase 1 + 2 tour pattern: HttpCase.start_tour wrappers tagged 'tour' so they skip cleanly when websocket-client is absent. Tours cover smoke (/odoo loads), the asset list / category list / anomaly list views, and the depreciation-run wizard form. Bundle is wired via web.assets_tests. Verified locally: 5 tests registered, all skip with "websocket-client module is not installed" (expected — no chromium in the dev container). Made-with: Cursor
29 lines
999 B
Python
29 lines
999 B
Python
"""Python wrappers that run the OWL tours via HttpCase.start_tour.
|
|
|
|
Tours require an HTTP server + headless browser. They are tagged with
|
|
'tour' so they can be excluded from fast unit-test runs and selected
|
|
explicitly when CI has the right infra (chromium + xvfb / websocket-client).
|
|
"""
|
|
|
|
from odoo.tests.common import HttpCase
|
|
from odoo.tests import tagged
|
|
|
|
|
|
@tagged('post_install', '-at_install', 'tour')
|
|
class TestAssetsTours(HttpCase):
|
|
|
|
def test_smoke_tour(self):
|
|
self.start_tour("/odoo", "fusion_assets_smoke", login="admin")
|
|
|
|
def test_list_tour(self):
|
|
self.start_tour("/odoo", "fusion_assets_list", login="admin")
|
|
|
|
def test_categories_tour(self):
|
|
self.start_tour("/odoo", "fusion_assets_categories", login="admin")
|
|
|
|
def test_anomalies_tour(self):
|
|
self.start_tour("/odoo", "fusion_assets_anomalies", login="admin")
|
|
|
|
def test_depreciation_wizard_tour(self):
|
|
self.start_tour("/odoo", "fusion_assets_depreciation_wizard", login="admin")
|