gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin" <jrm...@ucdavis.edu>
Subject Gump3 Unit Test - error
Date Fri, 01 Jul 2005 18:16:42 GMT
My environment is

WinXP Running:
Cygwin
java1.4
python2.4
MySQL4.1

I am getting errors from running unit test, that I am having trouble tracing.

======================================================================
ERROR: test_visit_module (testDynagumper.DynagumperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python24\Lib\site-packages\pmock.py", line 507, in _auto_verified_test
    self._real_test_method()
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\test\testDynagumper.py", line 55,
in test_visit_module
    dynagumper.visit_module("blah")
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\plugins\dynagumper.py", line 107,
in visit_module
    cmd = "SELECT * FROM %s WHERE name = '%s';" % (tablename, module.name)
AttributeError: 'str' object has no attribute 'name'

======================================================================
ERROR: test_visit_workspace (testDynagumper.DynagumperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python24\Lib\site-packages\pmock.py", line 50
Find some starting with <DOM Element: in at 0xc7fbc0> 
Find module starting with <DOM Element: uniquetaghere at 0xcb6468> 
Find project starting with <DOM Element: uniquetaghere at 0xcbba58> 
Find repository starting with <DOM Element: uniquetaghere at 0xcc8080> 
7, in _auto_verified_test
    self._real_test_method()
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\test\testDynagumper.py", line 50,
in test_visit_workspace
    dynagumper.visit_workspace("blah")
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\plugins\dynagumper.py", line 80, in
visit_workspace
    cmd = "SELECT * FROM %s WHERE name = '%s' AND host = '%s';" % (tablename, workspace.name,
self.host)
AttributeError: 'str' object has no attribute 'name'

======================================================================
ERROR: test_do_script (testPluginBuilder.BuilderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python24\Lib\site-packages\pmock.py", line 507, in _auto_verified_test
    self._real_test_method()
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\test\testPluginBuilder.py", line 77,
in test_do_script
    rmtree(basedir)
  File "c:\python24\lib\shutil.py", line 159, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "c:\python24\lib\shutil.py", line 159, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "c:\python24\lib\shutil.py", line 159, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "c:\python24\lib\shutil.py", line 164, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "c:\python24\lib\shutil.py", line 162, in rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied: 'c:\\docume~1\\bigmer~1\\locals~1\\temp\\tmpyuuuwl\\w\\r\\m\\dobuild.bat'

======================================================================
FAIL: test_visit_project (testDynagumper.DynagumperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python24\Lib\site-packages\pmock.py", line 507, in _auto_verified_test
    self._real_test_method()
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\test\testDynagumper.py", line 64,
in test_visit_project
    dynagumper.visit_project(self.project)
  File "C:\cygwin\home\BigMerz\gump3\pygump\python\gump\plugins\dynagumper.py", line 131,
in visit_project
    (rows, result) = self.db.execute(cmd)
  File "c:\python24\Lib\site-packages\pmock.py", line 392, in __call__
    return self._mock.invoke(Invocation(self._name, args, kwargs))
  File "c:\python24\Lib\site-packages\pmock.py", line 454, in invoke
    raise MatchError.create_error(str(err), invocation, self)
MatchError: no match found
invoked execute("SELECT * FROM projects WHERE name = 'blah';")

----------------------------------------------------------------------
Ran 54 tests in 2.424s

-Thanks

Justin


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message