Orchestrata Ultimate › Tests › Reference › scripts › test_ast_gen_protocol

Tests reference — tests/scripts/test_ast_gen_protocol.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_ast_gen_protocol.py

source · 9 tests · 135 lines

Tests for the AST tool's gen-protocol generator (Protocol/ABC/impl).

Kind Name Line Description
function test_gen_protocol_default_emits_runtime_checkable_protocol 57
function test_gen_protocol_preserves_property_and_staticmethod 71
function test_gen_protocol_abc_kind_marks_each_method_abstract 78
function test_gen_protocol_impl_kind_raises_not_implemented 88
function test_gen_protocol_as_name_override 96
function test_gen_protocol_missing_class_returns_none 103
function test_gen_protocol_all_kinds_compile 108
function test_gen_protocol_method_without_docstring_emits_no_docline 117
function test_gen_protocol_empty_public_api_emits_ellipsis 128