def client_from_application(app): from werkzeug.test import Client from werkzeug.wrappers import Response c = Client(app, Response) c.app = app return c
def client(project_path=".", settings_file="settings.ini", local_settings_file="local_settings.ini"): from werkzeug.test import Client from werkzeug.wrappers import Response app = get_app(project_path, settings_file, local_settings_file) c = Client(app, Response) c.app = app return c
def client(project_path='.', settings_file='settings.ini', local_settings_file='local_settings.ini'): from werkzeug.test import Client from werkzeug.wrappers import Response os.chdir(project_path) app = get_app(project_path, settings_file, local_settings_file) c = Client(app, Response) c.app = app return c
def client(project_path='.'): from werkzeug.test import Client from werkzeug.wrappers import Response os.chdir(project_path) app = get_app(project_path) c = Client(app, Response) c.app = app return c
def client_from_application(app): from werkzeug.test import Client from werkzeug.wrappers import Response setattr(Client, 'test_url', test_url) c = Client(app, Response) c.app = app return c