Orchestrata Ultimate › Tests › Reference › scripts › test_ast_gen_enum
Tests reference — tests/scripts/test_ast_gen_enum.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_gen_enum.py
source · 21 tests · 320 lines
Tests for the AST tool's
gen-enumgenerator.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_gen_enum_strenum_values_are_member_lowercased |
31 | |
| function | test_gen_enum_intenum_values_are_sequential |
43 | |
| function | test_gen_enum_plain_enum_uses_lowercased_string_values |
54 | |
| function | test_gen_enum_stamps_traces_with_spec_story_reqs |
62 | |
| function | test_gen_enum_traces_reqs_only_omits_spec_story |
74 | |
| function | test_gen_enum_no_traces_without_reqs |
80 | |
| function | test_gen_enum_empty_members_emits_ellipsis_and_compiles |
86 | |
| function | test_gen_enum_output_always_compiles |
93 | |
| function | test_gen_enum_explicit_values_and_docstring |
100 | |
| function | test_gen_enum_stacked_traces_specs |
113 | |
| function | test_generate_enum_from_spec |
128 | |
| function | test_load_enum_spec_supports_catalog_and_single_spec |
145 | |
| function | test_check_enum_drift_passes_for_matching_source |
162 | |
| function | test_check_enum_drift_reports_mismatch |
189 | |
| function | test_gen_enum_default_import_prefix_output_is_byte_identical |
222 | Pin: omitting --import-prefix (the import_prefix default) emits |
| function | test_gen_enum_import_prefix_override_replaces_traces_import |
244 | |
| function | test_gen_enum_import_prefix_ignored_without_traces |
252 | No @traces means no traces import at all — the prefix has nothing to |
| function | test_generate_enum_from_spec_import_prefix_override |
261 | |
| function | test_cli_gen_enum_default_import_prefix_is_orchestrata_ultimate |
283 | |
| function | test_cli_gen_enum_import_prefix_flag_overrides_traces_import |
289 | |
| function | test_cli_gen_enum_spec_file_import_prefix_flag_applies |
304 |