changeset 1306:3d7bae541786

create the same kind of test request environment as we have when using the builtin server use http://localhost:8080/ for tests as if we just ran "moin". this is also good to check whether the port is supported by url building functions.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 21 Mar 2012 00:39:04 +0100
parents 770e06a34d09
children cfef35e4c9eb
files MoinMoin/conftest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Tue Mar 20 13:12:07 2012 +0100
+++ b/MoinMoin/conftest.py	Wed Mar 21 00:39:04 2012 +0100
@@ -57,7 +57,7 @@
     app = create_app_ext(flask_config_dict=dict(SECRET_KEY='foobarfoobar'),
                          moin_config_class=given_config,
                          **more_config)
-    ctx = app.test_request_context('/')
+    ctx = app.test_request_context('/', base_url="http://localhost:8080/")
     ctx.push()
     before_wiki()
     return app, ctx