I'm trying to use Paste#lint in my functional tests for a pylons app.
I've got this in test.ini, among other things
[app:main]
# refer to a working paste initialization file
use=config:mwbuild/_site.cfg
filter-with=egg:Paste#lint
In _site.cfg (which works fine) I've got:
[composite:main]
use=egg:Paste#urlmap
filter-with=cachefilters
/ = client
/api = me
This all works except when the Paste#lint filter is involved, in which case
I get this stack trace:
Traceback (most recent call last):
File
"/Users/alecf/tip/client/client/tests/functional/test_view_showcase.py",
response = self.app.get(url_for(controller='site/showcase'))
File "/Users/alecf/tip/client/_site-packages/Paste-1.4-py2.4.egg
/paste/fixture
return self.do_request(req, status=status)
File "/Users/alecf/tip/client/_site-packages/Paste-1.4-py2.4.egg
/paste/fixture
raise_on_wsgi_error=raise_on_wsgi_error,
File "/Users/alecf/tip/client/_site-packages/Paste-1.4-py2.4.egg
/paste/wsgilib
app_iter = application(basic_environ, start_response)
File "/Users/alecf/tip/client/_site-packages/Paste-1.4-py2.4.egg
/paste/lint.py
iterator = application(environ, start_response_wrapper)
TypeError: composed() takes exactly 1 argument (2 given)
I kind of wonder if Paste#lint is somehow getting an instance of middleware,
rather than the middleware factory (or vice versa) but really I'm not quite
sure. I'm assuming I'm misusing filter-with or something. Anyone have any
ideas?
Alec
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users