Initialize Poll module seed
This commit is contained in:
21
tests/test_manifest.py
Normal file
21
tests/test_manifest.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from govoplan_core.core.modules import ModuleManifest
|
||||
from govoplan_poll.backend.manifest import get_manifest
|
||||
|
||||
|
||||
class PollManifestTests(unittest.TestCase):
|
||||
def test_manifest_contract(self) -> None:
|
||||
manifest = get_manifest()
|
||||
|
||||
self.assertIsInstance(manifest, ModuleManifest)
|
||||
self.assertEqual(manifest.id, "poll")
|
||||
self.assertIn("access", manifest.dependencies)
|
||||
self.assertIn("poll.availability_matrix", {interface.name for interface in manifest.provides_interfaces})
|
||||
self.assertIn("poll:response:write", {permission.scope for permission in manifest.permissions})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user