"""Tests for cron handlers.""" from odoo.tests.common import TransactionCase, tagged @tagged('post_install', '-at_install') class TestFusionReportsCron(TransactionCase): def setUp(self): super().setUp() self.cron = self.env['fusion.reports.cron'] def test_cron_mv_refresh_does_not_raise(self): # Smoke test: the cron must complete without raising even if the # CONCURRENTLY path fails on a cold MV (the handler falls back). self.cron._cron_mv_refresh() def test_cron_anomaly_scan_does_not_raise(self): # Smoke test: scan all companies, persist anomalies, no exceptions. self.cron._cron_anomaly_scan()