Commits

Thomas Waldmann committed 3d7bae5

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.

Comments (0)

Files changed (1)

MoinMoin/conftest.py

     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