commit 050e321a377f9ec118645c4c26180e126f190c2a
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Fri Nov 1 15:56:30 2013 +0100
[test] Test parsing Ivy modules
python/test/data/ivy-simple.xml | 8 ++++++++
python/test/pom_test.py | 7 +++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/python/test/data/ivy-simple.xml b/python/test/data/ivy-simple.xml
new file mode 100644
index 0000000..42cfce9
--- /dev/null
+++ b/python/test/data/ivy-simple.xml
@@ -0,0 +1,8 @@
+<ivy-module version="2.0">
+ <info organisation="org.apache" module="hello-ivy"
revision="1.2.3"/>
+ <dependencies>
+ <dependency org="junit" name="junit"
rev="4.8.1">
+ <exclude org="org.hamcrest" module="hamcrest-core"/>
+ </dependency>
+ </dependencies>
+</ivy-module>
diff --git a/python/test/pom_test.py b/python/test/pom_test.py
index 7f7b41e..c98decd 100644
--- a/python/test/pom_test.py
+++ b/python/test/pom_test.py
@@ -75,6 +75,13 @@ class TestPOM(unittest.TestCase):
self.assertEqual(p.artifactId, "junit")
self.assertEqual(p.version, "4.11")
+ @pomfile("ivy-simple.xml")
+ def test_ivy_module(self, p):
+ self.assertEqual(p.packaging, "ivy")
+ self.assertEqual(p.groupId, "org.apache")
+ self.assertEqual(p.artifactId, "hello-ivy")
+ self.assertEqual(p.version, "1.2.3")
+
if __name__ == '__main__':
unittest.main()
Show replies by date