Files
Odoo-Modules/fusion_accounting_followup/tests/test_followup_cron.py
gsinghpal 042dcf8067
Some checks failed
fusion_accounting CI / test (fusion_accounting_ai) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_core) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_migration) (push) Has been cancelled
feat(fusion_accounting_followup): 2 cron jobs (daily scan + weekly risk refresh)
- fusion.followup.cron AbstractModel with two handlers
- cron_fusion_followup_daily_scan: walks every overdue partner and
  delegates to engine.send_followup_email
- cron_fusion_followup_risk_refresh: weekly refresh of
  fusion_followup_risk_score / risk_band on res.partner
- V19 ir.cron records (no numbercall field)
- 2 smoke tests added (80 total)

Made-with: Cursor
2026-04-19 21:04:37 -04:00

19 lines
478 B
Python

"""Smoke tests for the fusion follow-up cron handlers."""
from odoo.tests import tagged
from odoo.tests.common import TransactionCase
@tagged('post_install', '-at_install')
class TestFollowupCron(TransactionCase):
def setUp(self):
super().setUp()
self.cron = self.env['fusion.followup.cron']
def test_cron_daily_scan_runs(self):
self.cron._cron_daily_scan()
def test_cron_risk_refresh_runs(self):
self.cron._cron_risk_refresh()