feat: reconcile sanctions screening freshness
This commit is contained in:
@@ -2,6 +2,10 @@ from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from govoplan_core.core.sanctions import (
|
||||
CAPABILITY_RISK_COMPLIANCE_SANCTIONS_SCREENING,
|
||||
SanctionsScreeningProvider,
|
||||
)
|
||||
from govoplan_risk_compliance.backend.manifest import (
|
||||
ADMIN_SCOPE,
|
||||
READ_SCOPE,
|
||||
@@ -49,6 +53,17 @@ class ManifestTests(unittest.TestCase):
|
||||
manifest.requires_interfaces[0].name,
|
||||
)
|
||||
self.assertTrue(manifest.requires_interfaces[0].optional)
|
||||
self.assertEqual(
|
||||
{"risk_compliance.sanctions_screening"},
|
||||
{
|
||||
item.name
|
||||
for item in manifest.provides_interfaces
|
||||
},
|
||||
)
|
||||
capability = manifest.capability_factories[
|
||||
CAPABILITY_RISK_COMPLIANCE_SANCTIONS_SCREENING
|
||||
](None)
|
||||
self.assertIsInstance(capability, SanctionsScreeningProvider)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user