Anonymous avatar Anonymous committed 233fbc6

Tart up testing.

Comments (0)

Files changed (1)

 """
-Python interface to Ditz issue directory.
+Python interface to Ditz issue tracker (http://ditz.rubyforge.org).
 """
 
 import os
     def filename(self):
         return self.template % self.id
 
-if __name__ == "__main__":
-    ditz = Ditz()
+def _test(basedir = None):
+    ditz = Ditz(basedir)
 
-    print "%s <%s>" % (ditz.config.name, ditz.config.email)
+    print "User: %s <%s>" % (ditz.config.name, ditz.config.email)
 
     print
-    print ditz.project.name
+    print "Project:", ditz.project.name
 
     print
     print "Releases:"
     print
     print "Issues:"
     for issue in ditz:
-        print "   %s [%s]" % (issue.title, issue.type)
+        print "   %s [%s]" % (issue.title, issue.type[1:])
+    
+if __name__ == "__main__":
+    _test()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.