#2166: quickstart-generated tests crash
------------------------+---------------------------------------------------
Reporter: pitrou | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 2.0b5
Component: TurboGears | Version:
Severity: normal | Keywords:
------------------------+---------------------------------------------------
After downloading 2.0b4, I quickstarted a project and tried running the
generated tests with nose, and got the following traceback:
Traceback (most recent call last):
File "/usr/bin/nosetests", line 8, in <module>
load_entry_point('nose==0.10.4', 'console_scripts', 'nosetests')()
File "/usr/lib/python2.5/site-
packages/nose-0.10.4-py2.5.egg/nose/core.py", line 219, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "/usr/lib64/python2.5/unittest.py", line 767, in __init__
self.parseArgs(argv)
File "/usr/lib/python2.5/site-
packages/nose-0.10.4-py2.5.egg/nose/core.py", line 236, in parseArgs
self.config.configure(argv, doc=TestProgram.__doc__)
File "/usr/lib/python2.5/site-
packages/nose-0.10.4-py2.5.egg/nose/config.py", line 295, in configure
self.plugins.begin()
File "/usr/lib/python2.5/site-
packages/nose-0.10.4-py2.5.egg/nose/plugins/manager.py", line 81, in
__call__
return self.call(*arg, **kw)
File "/usr/lib/python2.5/site-
packages/nose-0.10.4-py2.5.egg/nose/plugins/manager.py", line 145, in
simple
result = meth(*arg, **kw)
File "/usr/lib/python2.5/site-
packages/Pylons-0.9.7rc4-py2.5.egg/pylons/test.py", line 72, in begin
self.app = pylonsapp = loadapp('config:' + self.config_file,
relative_to=path)
File "/usr/lib/python2.5/site-
packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 204,
in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.5/site-
packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 225,
in loadobj
return context.create()
File "/usr/lib/python2.5/site-
packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 625,
in create
return self.object_type.invoke(self)
File "/usr/lib/python2.5/site-
packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 110,
in invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "/usr/lib/python2.5/site-
packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/util/fixtypeerror.py",
line 57, in fix_call
val = callable(*args, **kw)
File "/home/antoine/ftth/pyftth/ftth/config/middleware.py", line 10, in
make_app
app = make_base_app(global_conf, full_stack=True, **app_conf)
File "/usr/lib/python2.5/site-
packages/TurboGears2-2.0b4-py2.5.egg/tg/configuration.py", line 591, in
make_base_app
app = self.add_auth_middleware(app)
File "/usr/lib/python2.5/site-
packages/TurboGears2-2.0b4-py2.5.egg/tg/configuration.py", line 478, in
add_auth_middleware
app = setup_sql_auth(app, **auth_args)
TypeError: setup_sql_auth() takes at least 5 non-keyword arguments (4
given); got ({'error_...ue'}, beaker.session.key=...,
beaker.session.secret=..., cache_dir=..., full_stack=...,
sqlalchemy.echo=..., sqlalchemy.echo_pool=...,
sqlalchemy.pool_recycle=..., sqlalchemy.url=...), wanted (global_conf,
full_stack=True, **app_conf)
--
Ticket URL: <http://trac.turbogears.org/ticket/2166>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---