Orchestrata Ultimate › Tests › Reference › openspec

Tests reference — tests/openspec

tests/openspec — 2 test modules, 38 test functions. Source tree: tests/openspec at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.

Prose pending.

Modules

Module Tests Covers
test_openspec.py 19 1
test_requirements_parser.py 19 1

Module details

tests/openspec/test_openspec.py

source · 19 tests · 250 lines

SPEC-104 OpenSpec format tests (TST-104-001..008).

Covers: openspec/ (package)

Kind Name Line Description
function test_is_openspec_true_for_requirement_scenario 58
function test_is_openspec_false_for_orchestrata 62
function test_is_openspec_true_for_delta 66
function test_detect_openspec_folder 73
function test_detect_orchestrata_folder 83
function test_detect_unknown_when_absent 89
function test_detect_specs_dir_openspec_format_without_openspec_dir 95
function test_detect_specs_dir_unrecognized_when_sample_unreadable 105
function test_detect_openspec_folder_without_specs_or_changes_subdirs 116
function test_parse_spec_captures_requirements_and_scenarios 129
function test_round_trip_structural_equality 144
function test_parse_deltas_keys_by_operation 153
function test_validate_flags_missing_scenario 169
function test_validate_clean_spec_has_no_violations 177
function test_repo_capabilities_and_read 190
function test_add_requirement_preserves_existing 196
function test_create_change_writes_artifacts 214
function test_create_change_refuses_overwrite 241
function test_sandbox_rejects_traversal 247

tests/openspec/test_requirements_parser.py

source · 19 tests · 204 lines

Tests for orchestrata_ultimate.openspec.requirements_parser.

Covers: openspec.requirements_parser

Kind Name Line Description
class TestParseRequirements 19
method TestParseRequirements.test_missing_checklist_raises 20
method TestParseRequirements.test_parses_basic_requirement_line 25
method TestParseRequirements.test_checked_box_also_parsed 37
method TestParseRequirements.test_story_and_fr_scoped_id_tails_are_valid 43
method TestParseRequirements.test_single_quotes_in_description_are_escaped 54
method TestParseRequirements.test_backslashes_in_description_are_escaped 62
method TestParseRequirements.test_non_matching_lines_are_skipped 73
method TestParseRequirements.test_no_requirements_returns_empty_list 85
class TestRun 91
method TestRun.test_run_prints_facts_with_trailing_period 92
method TestRun.test_run_missing_checklist_propagates 101
class TestNextRequirementId 107 The GOAL C deliverable: emit the next id automatically, derived from
method TestNextRequirementId.test_emits_next_id_reading_max_across_both_forms 127
method TestNextRequirementId.test_all_accepted_story_forms_agree 134
method TestNextRequirementId.test_no_existing_ids_for_story_starts_at_001 142
method TestNextRequirementId.test_nonexistent_story_raises_naming_id_spec_and_existing 149
method TestNextRequirementId.test_fr_only_spec_refuses_to_mint 158
method TestNextRequirementId.test_unparseable_story_raises 166
method TestNextRequirementId.test_missing_checklist_propagates 171
method TestNextRequirementId.test_real_spec_003_story_us_004 178
method TestNextRequirementId.test_foreign_spec_ids_in_checklist_are_ignored 190