connexion.mock

This module contains a mock resolver that returns mock functions for operations it cannot resolve.

Module Contents

Classes

MockResolver

Standard resolver

Attributes

logger

connexion.mock.logger
class connexion.mock.MockResolver(mock_all)

Bases: connexion.resolver.Resolver

Standard resolver

Parameters:

function_resolver (types.FunctionType) – Function that resolves functions using an operationId

resolve(self, operation)

Mock operation resolver

mock_operation(self, operation, *args, **kwargs)
resolve_operation_id(self, operation)

Default operationId resolver

resolve_function_from_operation_id(self, operation_id)

Invokes the function_resolver