示例#1
0
文件: test.py 项目: RiverLiu/uliweb
def client_from_application(app):
    from werkzeug.test import Client
    from werkzeug.wrappers import Response

    c = Client(app, Response)
    c.app = app
    return c
示例#2
0
def client_from_application(app):
    from werkzeug.test import Client
    from werkzeug.wrappers import Response

    c = Client(app, Response)
    c.app = app
    return c
示例#3
0
文件: test.py 项目: RiverLiu/uliweb
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
示例#4
0
文件: test.py 项目: jamiesun/uliweb
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
示例#5
0
文件: test.py 项目: datakungfu/uliweb
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
示例#6
0
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
示例#7
0
文件: test.py 项目: xiedantibu/uliweb
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
示例#8
0
文件: test.py 项目: 28sui/uliweb
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