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
This commit is contained in:
@@ -13,3 +13,4 @@ from . import test_engine_integration
|
||||
from . import test_followup_controller
|
||||
from . import test_followup_adapter
|
||||
from . import test_followup_tools
|
||||
from . import test_followup_cron
|
||||
|
||||
18
fusion_accounting_followup/tests/test_followup_cron.py
Normal file
18
fusion_accounting_followup/tests/test_followup_cron.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""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()
|
||||
Reference in New Issue
Block a user