diff --git a/docs/module-package-catalog.example.json b/docs/module-package-catalog.example.json index 38d8142..2b54c12 100644 --- a/docs/module-package-catalog.example.json +++ b/docs/module-package-catalog.example.json @@ -87,6 +87,14 @@ "version": "0.2.0" } ], + "requires_interfaces": [ + { + "name": "campaigns.access", + "version_min": "0.1.0", + "version_max_exclusive": "0.2.0", + "optional": true + } + ], "artifact_integrity": { "python": { "ref": "govoplan-mail @ git+ssh://git@git.add-ideas.de/add-ideas/govoplan-mail.git@v0.1.4", diff --git a/tests/test_module_system.py b/tests/test_module_system.py index ef3e0a6..c1cff6a 100644 --- a/tests/test_module_system.py +++ b/tests/test_module_system.py @@ -3131,6 +3131,12 @@ finally: }, modules["files"]["requires_interfaces"]) self.assertEqual(["campaigns"], modules["files"]["optional_dependencies"]) self.assertIn({"name": "mail.campaign_delivery", "version": "0.2.0"}, modules["mail"]["provides_interfaces"]) + self.assertIn({ + "name": "campaigns.access", + "optional": True, + "version_min": "0.1.0", + "version_max_exclusive": "0.2.0", + }, modules["mail"]["requires_interfaces"]) self.assertIn({ "name": "files.campaign_attachments", "optional": True,