feat(policy): resolve scheduling participant privacy
This commit is contained in:
@@ -4,6 +4,12 @@ import pathlib
|
||||
import tomllib
|
||||
import unittest
|
||||
|
||||
from govoplan_core.core.policy import (
|
||||
CAPABILITY_POLICY_PRIVACY_RETENTION,
|
||||
CAPABILITY_POLICY_SCHEDULING_PARTICIPANT_PRIVACY,
|
||||
)
|
||||
from govoplan_policy.backend.manifest import manifest
|
||||
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
|
||||
@@ -25,6 +31,15 @@ class PolicyModuleContractTests(unittest.TestCase):
|
||||
|
||||
self.assertEqual([], offenders)
|
||||
|
||||
def test_policy_manifest_exposes_policy_capabilities(self) -> None:
|
||||
self.assertEqual(
|
||||
{
|
||||
CAPABILITY_POLICY_PRIVACY_RETENTION,
|
||||
CAPABILITY_POLICY_SCHEDULING_PARTICIPANT_PRIVACY,
|
||||
},
|
||||
set(manifest.capability_factories),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user