Пример #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
Пример #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
Пример #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
Пример #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
Пример #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