Expose public module catalog discovery
This commit is contained in:
@@ -30,6 +30,12 @@ class CatalogPlanItemTests(unittest.TestCase):
|
||||
"python_package": "govoplan-calendar",
|
||||
"python_ref": 42,
|
||||
"webui_package": "@govoplan/calendar-webui",
|
||||
"artifact_integrity": {
|
||||
"python": {
|
||||
"url": "https://packages.example.test/calendar.whl",
|
||||
"sha256": "a" * 64,
|
||||
}
|
||||
},
|
||||
"notes": "Catalog note",
|
||||
"license_features": ["calendar.sync", "", 7],
|
||||
},
|
||||
@@ -59,6 +65,7 @@ class CatalogPlanItemTests(unittest.TestCase):
|
||||
self.assertIsNone(item.python_ref)
|
||||
self.assertEqual(item.webui_package, "@govoplan/calendar-webui")
|
||||
self.assertIsNone(item.webui_ref)
|
||||
self.assertEqual(item.artifact_integrity["python"]["sha256"], "a" * 64)
|
||||
self.assertEqual(item.notes, "Catalog note\nLicense warning: Feature expires soon.")
|
||||
self.assertEqual(item.catalog["source"], "https://catalog.example.test/modules.json")
|
||||
self.assertEqual(item.catalog["channel"], "stable")
|
||||
|
||||
Reference in New Issue
Block a user