I am trying to setup my application for unit testing, but I am getting
a very cryptic failure right off the batch. (Seel below). Could someone
please tell me what is going on>
(BTW: My mode.py defines the object Test() with a foreign key
testType.)
Thanks!
=========================
C:\dev\sgresultsdb\trunk>python setup.py test
running test
running egg_info
writing requirements to sgresultsdb.egg-info\requires.txt
writing sgresultsdb.egg-info\PKG-INFO
writing top-level names to sgresultsdb.egg-info\top_level.txt
writing manifest file 'sgresultsdb.egg-info\SOURCES.txt'
running build_ext
ERROR
ERROR
Object creation should set the name ... ERROR
Traceback (most recent call last):
File "setup.py", line 23, in ?
test_suite = 'nose.collector',
File "C:\Python24\lib\distutils\core.py", line 149, in setup
dist.run_commands()
File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
self.run_command(cmd)
File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
cmd_obj.run()
File
"c:\python24\lib\site-packages\setuptools-0.6a10-py2.4.egg\setuptools\command\test.py",
line 59, in run
self.run_tests()
File
"c:\python24\lib\site-packages\setuptools-0.6a10-py2.4.egg\setuptools\command\test.py",
line 73, in run_test
s
unittest.main(None, None, [unittest.__file__]+self.test_args)
File "c:\python24\lib\unittest.py", line 759, in __init__
self.runTests()
File "c:\python24\lib\unittest.py", line 796, in runTests
result = self.testRunner.run(self.test)
File "c:\python24\lib\unittest.py", line 696, in run
test(result)
File "c:\python24\lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "c:\python24\lib\unittest.py", line 424, in run
test(result)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
298, in __call__
self.run(*args, **kwds)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
414, in run
test(result)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
298, in __call__
self.run(*args, **kwds)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
414, in run
test(result)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
298, in __call__
self.run(*args, **kwds)
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
410, in run
for test in self.collectTests():
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
501, in collectTests
for test in self.findTestsInModule(self.module):
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
554, in findTestsInModule
[ tests.append(case) for case in
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
201, in loadTestsFromClass
tests.append(MethodTestCase(klass, item))
File
"c:\python24\lib\site-packages\nose-0.8.6-py2.4.egg\nose\core.py", line
149, in __init__
self.testInstance = self.klass()
File
"c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1457-py2.4.egg\sqlobject\main.py",
line 1197, in __init__
self._create(id, **kw)
File
"c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1457-py2.4.egg\sqlobject\main.py",
line 1216, in _create
raise TypeError, "%s() did not get expected keyword argument %s" %
(self.__class__.__name__, column.name)
TypeError: Test() did not get expected keyword argument testTypeID
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---