/** * Python test file emitter — BaseTestContext → pytest source code. * * Replaces the Nunjucks templates: * - `test.py.njk` → emitPythonTest() * - `test_context.py.njk` → emitPythonTestContext() * - `_macros.njk` → factoryParamTestValue(), renderValidation() * * The emitter produces pytest functions for: * - JSON loading (load_json per example) * - YAML loading (load_yaml per example) * - Round-trip (load → save → load per example) * - Serialization (to_json, to_yaml per example) * - Alternate representations (scalar coercions) * - Factory methods */ import { PythonClassContext, BaseTestContext } from "../../ir/ast.js"; /** * Emit the test_context.py file content (tests for LoadContext + SaveContext). * Replaces test_context.py.njk template. */ export declare function emitPythonTestContext(header: string, packageName: string): string; /** * Emit a pytest test file for a type. * Replaces test.py.njk template. */ export interface PythonTestEmitterOptions { nativeSerialization?: "none" | "pydantic"; } export declare function emitPythonTest(ctx: BaseTestContext & { classCtx: PythonClassContext; }, options?: PythonTestEmitterOptions): string;