feat: scaffold native projects module
This commit is contained in:
31
tests/test_manifest.py
Normal file
31
tests/test_manifest.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from govoplan_projects.backend.manifest import (
|
||||
ADMIN_SCOPE,
|
||||
READ_SCOPE,
|
||||
WRITE_SCOPE,
|
||||
get_manifest,
|
||||
)
|
||||
|
||||
|
||||
class ProjectsManifestTests(unittest.TestCase):
|
||||
def test_manifest_registers_domain_seed(self) -> None:
|
||||
manifest = get_manifest()
|
||||
|
||||
self.assertEqual("projects", manifest.id)
|
||||
self.assertEqual(("access",), manifest.dependencies)
|
||||
self.assertEqual(
|
||||
{READ_SCOPE, WRITE_SCOPE, ADMIN_SCOPE},
|
||||
{permission.scope for permission in manifest.permissions},
|
||||
)
|
||||
self.assertIn("connectors", manifest.optional_dependencies)
|
||||
self.assertIn("tickets", manifest.optional_dependencies)
|
||||
self.assertTrue(manifest.documentation)
|
||||
self.assertIsNone(manifest.route_factory)
|
||||
self.assertIsNone(manifest.frontend)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user