mediagoblin/mediagoblin/tests/test_paste.ini
Elrond 91b89bde47 591: Let Testing Middleware check for staticdirect() usage
All references to static, shipped content should go via
request.staticdirect().

So insert a TestingMiddleware in the chain, which tests for
this on all requests/reponses happening in the test suite.
It's a simple text search for a bogus usage pattern.
2011-10-19 21:37:19 +02:00

38 lines
858 B
INI

[DEFAULT]
debug = true
[composite:main]
use = egg:Paste#urlmap
/ = mediagoblin
/mgoblin_media/ = publicstore_serve
/test_static/ = mediagoblin_static
[app:mediagoblin]
use = egg:mediagoblin#app
filter-with = beaker
config = %(here)s/test_mgoblin_app.ini
[app:publicstore_serve]
use = egg:Paste#static
document_root = %(here)s/test_user_dev/media/public
[app:mediagoblin_static]
use = egg:Paste#static
document_root = %(here)s/mediagoblin/static/
[filter:beaker]
use = egg:Beaker#beaker_session
cache_dir = %(here)s/test_user_dev/beaker
beaker.session.key = mediagoblin
# beaker.session.secret = somesupersecret
beaker.session.data_dir = %(here)s/test_user_dev/beaker/sessions/data
beaker.session.lock_dir = %(here)s/test_user_dev/beaker/sessions/lock
[celery]
celery_always_eager = true
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 6543