Exemplo n.º 1
0
def test_app_get_root_path_not_in_sys_modules(sys_modules_mock,
                                              aiohttp_api_spec_dir):
    app = AioHttpApp('connexion',
                     port=5001,
                     specification_dir=aiohttp_api_spec_dir)
    assert app.get_root_path().endswith('/connexion') == True
Exemplo n.º 2
0
def test_app_get_root_path(aiohttp_api_spec_dir):
    app = AioHttpApp(__name__,
                     port=5001,
                     specification_dir=aiohttp_api_spec_dir)
    assert app.get_root_path().endswith('connexion/tests/aiohttp') == True
Exemplo n.º 3
0
def test_app_get_root_path_not_in_sys_modules(sys_modules_mock, aiohttp_api_spec_dir):
    app = AioHttpApp('connexion', port=5001,
                     specification_dir=aiohttp_api_spec_dir)
    assert app.get_root_path().endswith('/connexion') == True
Exemplo n.º 4
0
def test_app_get_root_path(aiohttp_api_spec_dir):
    app = AioHttpApp(__name__,
                     port=5001,
                     specification_dir=aiohttp_api_spec_dir)
    assert app.get_root_path().endswith(os.path.join('tests',
                                                     'aiohttp')) == True
Exemplo n.º 5
0
def test_app_get_root_path(aiohttp_api_spec_dir):
    app = AioHttpApp(__name__, port=5001,
                     specification_dir=aiohttp_api_spec_dir)
    assert app.get_root_path().endswith('connexion/tests/aiohttp') == True