Skip to content
Myr

Added a testcase where SERVER_NAME and APPLICATION_ROOT are not set

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent e853a0f · Browse files · 1 file+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−0 removed

  • tests:+13 added−0 removed

1 file+13 added−0 removed

modified:tests/flask_tests.py+13 added
1055 unmodified lines
1056 with app.test_client() as c:1057 rv = c.get('/')1058 self.assertEqual(rv.data, 'http://example.com:1234/foo/')10591060 def test_environ_defaults(self):1061 app = flask.Flask(__name__)1062 app.testing = True1063 @app.route('/')1064 def index():1065 return flask.request.url10661067 ctx = app.test_request_context()1068 self.assertEqual(ctx.request.url, 'http://localhost/')1069 with app.test_client() as c:1070 rv = c.get('/')1071 self.assertEqual(rv.data, 'http://localhost/')10721073 def test_session_transactions(self):1074 app = flask.Flask(__name__)1075 app.testing = True1076 app.secret_key = 'testing'
1232 unmodified lines