incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1491128 [3/3] - in /incubator/public/trunk/tools: src/asf/incubator/podlings.py tests/data/podlings.xml tests/test_podlings.py
Date Sun, 09 Jun 2013 02:45:39 GMT
Modified: incubator/public/trunk/tools/tests/test_podlings.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/tools/tests/test_podlings.py?rev=1491128&r1=1491127&r2=1491128&view=diff
==============================================================================
--- incubator/public/trunk/tools/tests/test_podlings.py (original)
+++ incubator/public/trunk/tools/tests/test_podlings.py Sun Jun  9 02:45:39 2013
@@ -19,13 +19,19 @@
 import os
 import datetime
 
+from nose.plugins.attrib import attr
+
 from asf.incubator.podlings import Podling, retired, graduated, incubating, VALID_STATUS
+from asf.utils.committers import get_committer
+from asf.utils.test import ensure_credentials_stored
 
 
 DATA_ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
 
 
-def test_from_xml():
+@attr('integration')
+@ensure_credentials_stored
+def test_from_xml(username, password):
     with open(os.path.join(DATA_ROOT, 'podlings.xml'), 'r') as fh:
         podlings = Podling.from_file_handle(fh)
         assert podlings
@@ -40,7 +46,13 @@ def test_from_xml():
             assert not podling.end_date or isinstance(podling.end_date, datetime.date)
             assert podling.status in VALID_STATUS
             assert not podling.reporting_group or isinstance(podling.reporting_group, int)
+            for mentor in podling.mentors:
+                try:
+                    committer = get_committer(mentor, username, password)
+                    print committer.fullname, 'is a committer'
+                except KeyError:
+                    print mentor, 'is not a committer'
 
-        assert len(incubating(podlings)) == 35
-        assert len(graduated(podlings)) == 117
+        assert len(incubating(podlings)) == 34
+        assert len(graduated(podlings)) == 118
         assert len(retired(podlings)) == 32



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message