ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

Undocumented

Class Method setMethodPattern Set the method pattern for identifying test methods.
Method __init__ Initialize the test case and eagerly wrap the designated test method.
Method _resolveTest Wrap a test method to initialize the application context before execution.
Method _setupAsyncioRunner Configure the event loop's slow-callback threshold.
Async Method mcp Create an MCP client using the test runner's application.
def setMethodPattern(cls, pattern: str): (source)

Set the method pattern for identifying test methods.

Parameters
pattern:strThe glob pattern to match test method names (e.g., "test*").
Returns
NoneThis method stores the compiled pattern in the current context and returns None.
def __init__(self, method_name: str = 'runTest'): (source)

Initialize the test case and eagerly wrap the designated test method.

Parameters
method_name:str, optionalName of the test method to run, by default "runTest".
Returns
NoneComplete the documented operation without returning a value.
def _resolveTest(self, method: Callable[..., Any]) -> Callable[..., Any]: (source)

Wrap a test method to initialize the application context before execution.

Parameters
method:Callable[..., Any]The test method to be wrapped.
Returns
Callable[..., Any]An asynchronous wrapper that invokes the test method within the application context.
def _setupAsyncioRunner(self): (source)

Configure the event loop's slow-callback threshold.

Keep asyncio debug checks enabled while reporting substantial event-loop blocking.

Returns
NoneSet the loop's slow_callback_duration to the configured threshold.
async def mcp(self, server: type[Server] | CompiledMcpServer, config: McpConfig | None = None, *, app: IContainer | None = None) -> McpTestClient: (source)

Create an MCP client using the test runner's application.

Parameters
server:type[Server] | CompiledMcpServerServer declaration or compiled snapshot to exercise.
config:McpConfig | None, optionalClient limits; use MCP defaults when omitted.
app:IContainer | None, optionalExplicit container for isolated tests; otherwise use the application already booted by the Orionis test runner.
Returns
McpTestClientIn-process client with independent request scopes and event state.
Raises
RuntimeErrorIf no container is supplied and the application is not booted.