Пример #1
0
def python_multi_build_context(created_model) -> PythonBuildContext:
    buildable = MultiModelBuildable([created_model],
                                    server_type=FlaskServer.type)
    return PythonBuildContext(buildable.get_provider())
Пример #2
0
def python_build_context_mock() -> PythonBuildContext:
    return PythonBuildContext(ProviderMock())
Пример #3
0
def python_build_context_async(created_model) -> PythonBuildContext:
    buildable = ModelBuildable(created_model, server_type=AIOHTTPServer.type)
    return PythonBuildContext(buildable.get_provider())