diff options
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r-- | tests/test_manifest_xml.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py index 939717be..2a8c3f66 100644 --- a/tests/test_manifest_xml.py +++ b/tests/test_manifest_xml.py | |||
@@ -212,6 +212,19 @@ class XmlManifestTests(unittest.TestCase): | |||
212 | '<manifest></manifest>') | 212 | '<manifest></manifest>') |
213 | self.assertEqual(manifest.ToDict(), {}) | 213 | self.assertEqual(manifest.ToDict(), {}) |
214 | 214 | ||
215 | def test_repo_hooks(self): | ||
216 | """Check repo-hooks settings.""" | ||
217 | manifest = self.getXmlManifest(""" | ||
218 | <manifest> | ||
219 | <remote name="test-remote" fetch="http://localhost" /> | ||
220 | <default remote="test-remote" revision="refs/heads/main" /> | ||
221 | <project name="repohooks" path="src/repohooks"/> | ||
222 | <repo-hooks in-project="repohooks" enabled-list="a, b"/> | ||
223 | </manifest> | ||
224 | """) | ||
225 | self.assertEqual(manifest.repo_hooks_project.name, 'repohooks') | ||
226 | self.assertEqual(manifest.repo_hooks_project.enabled_repo_hooks, ['a', 'b']) | ||
227 | |||
215 | def test_project_group(self): | 228 | def test_project_group(self): |
216 | """Check project group settings.""" | 229 | """Check project group settings.""" |
217 | manifest = self.getXmlManifest(""" | 230 | manifest = self.getXmlManifest(""" |