- 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
19 lines
478 B
Python
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()
|