Lines Matching full:app
70 self.app = flask.Flask(__name__)
71 self.app.testing = True
72 self.app.config['SECRET_KEY'] = 'notasecert'
73 self.app.logger.setLevel(logging.CRITICAL)
75 self.app,
115 app = flask.Flask(__name__)
117 oauth2.init_app(app, client_id='id', client_secret='secret')
118 self.assertEqual(oauth2.app, app)
145 app = flask.Flask(__name__)
146 app.config['GOOGLE_OAUTH2_CLIENT_ID'] = 'id'
147 app.config['GOOGLE_OAUTH2_CLIENT_SECRET'] = 'secret'
149 oauth2 = flask_util.UserOAuth2(app)
161 app = flask.Flask(__name__)
162 app.config['GOOGLE_OAUTH2_CLIENT_SECRETS_FILE'] = 'file.json'
163 oauth2 = flask_util.UserOAuth2(app)
173 with self.app.test_request_context():
192 app = flask.Flask(__name__)
193 app.config['SECRET_KEY'] = 'notasecert'
195 app, client_id='client_id', client_secret='secret',
198 with app.test_request_context():
203 with self.app.test_client() as client:
216 with self.app.test_client() as client:
223 with self.app.test_client() as client:
229 with self.app.test_request_context():
248 with self.app.test_client() as client:
268 with self.app.test_client() as client:
277 with self.app.test_client() as client:
291 with self.app.test_client() as client:
296 with self.app.test_client() as client:
305 with self.app.test_client() as client:
315 with self.app.test_client() as client:
329 with self.app.test_request_context():
341 with self.app.test_request_context():
360 with self.app.test_request_context():
366 with self.app.test_request_context():
373 with self.app.test_request_context():
379 @self.app.route('/protected')
385 with self.app.test_client() as client:
394 with self.app.test_client() as client:
407 with self.app.test_client() as client:
421 with self.app.test_client() as client:
432 self.app = flask.Flask(__name__)
433 self.app.testing = True
434 self.app.config['SECRET_KEY'] = 'notasecert'
436 self.app,
441 @self.app.route('/one')
446 @self.app.route('/two')
455 with self.app.test_client() as client:
463 with self.app.test_client() as client:
488 with self.app.test_client() as client:
499 with self.app.test_client() as client:
515 with self.app.test_request_context():
526 with self.app.test_request_context():