Show More
@@ -214,6 +214,22 b' def app(request, pylonsapp, http_environ' | |||
|
214 | 214 | return app |
|
215 | 215 | |
|
216 | 216 | |
|
217 | @pytest.fixture() | |
|
218 | def app_settings(pylonsapp, pylons_config): | |
|
219 | """ | |
|
220 | Settings dictionary used to create the app. | |
|
221 | ||
|
222 | Parses the ini file and passes the result through the sanitize and apply | |
|
223 | defaults mechanism in `rhodecode.config.middleware`. | |
|
224 | """ | |
|
225 | from paste.deploy.loadwsgi import loadcontext, APP | |
|
226 | from rhodecode.config.middleware import ( | |
|
227 | sanitize_settings_and_apply_defaults) | |
|
228 | context = loadcontext(APP, 'config:' + pylons_config) | |
|
229 | settings = sanitize_settings_and_apply_defaults(context.config()) | |
|
230 | return settings | |
|
231 | ||
|
232 | ||
|
217 | 233 | LoginData = collections.namedtuple('LoginData', ('csrf_token', 'user')) |
|
218 | 234 | |
|
219 | 235 |
General Comments 0
You need to be logged in to leave comments.
Login now