gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r124883 - /gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py /gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
Date Tue, 11 Jan 2005 04:56:09 GMT
Author: ajack
Date: Mon Jan 10 20:56:06 2005
New Revision: 124883

URL: http://svn.apache.org/viewcvs?view=rev&rev=124883
Log:
Trying to get unit tests to work.

Modified:
   gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py
   gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py

Modified: gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py
Url: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py?view=diff&rev=124883&p1=gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py&r1=124882&p2=gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py&r2=124883
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py	(original)
+++ gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py	Mon Jan 10 20:56:06 2005
@@ -24,9 +24,9 @@
 class Dynagumper(AbstractPlugin):
     """
     Populate the DynaGump run metadata database.
-    """
-    
-    def __init__(self, db, log, startdate_property_name, enddate_property_name):
+    """    
+    def __init__(self, db, log, startdate_property_name='startdate', enddate_property_name='enddate'):
+        AbstractPlugin.__init__(self,log)
         """Set up the Dynagumper.
 
         Arguments:

Modified: gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
Url: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py?view=diff&rev=124883&p1=gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py&r1=124882&p2=gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py&r2=124883
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py	(original)
+++ gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py	Mon Jan 10 20:56:06 2005
@@ -18,37 +18,35 @@
 __license__   = "http://www.apache.org/licenses/LICENSE-2.0"
 
 import unittest
-from unittest import TestCase
 
 from gump.test.mockobjects import *
-
-from gump.plugins.dynagumper import *
+from gump.plugins.dynagumper import Dynagumper
 
 mock = MockObjects()
 
-class DynagumperTestCase(TestCase):
+class DynagumperTestCase(unittest.TestCase):
     def setUp(self):
-        self.dynagumper = Dynagumper(mock.run,mock.database,log=mock.log)
+        self.dynagumper = Dynagumper(mock.run,mock.database,mock.log)
     
     def testEnsureThisHostIsInDatabase(self):
         #TODO actual tests
         self.dynagumper.ensureThisHostIsInDatabase()
 
-    def testProcessOtherEvent(self):
+    def testVisitOtherEvent(self):
         #TODO
-        self.dynagumper.processOtherEvent("blah")
+        self.dynagumper.VisitOtherEvent("blah")
     
-    def testProcessWorkSpace(self):
+    def testVisitWorkSpace(self):
         #TODO
-        self.dynagumper.processWorkspace()
+        self.dynagumper.visit_workspace("blah")
     
-    def testProcessModule(self):
+    def testVisitModule(self):
         #TODO
-        self.dynagumper.processModule("blah")
+        self.dynagumper.visit_module("blah")
     
-    def testProcessProject(self):
+    def testVisitProject(self):
         #TODO
-        self.dynagumper.processProject("blah")
+        self.dynagumper.visit_project("blah")
 
 # this is used by testrunner.py to determine what tests to run
 def test_suite():

Mime
View raw message