Orchestrata Ultimate › Tests › Reference › scripts › test_project_status

Tests reference — tests/scripts/test_project_status.py

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

Prose pending.

tests/scripts/test_project_status.py

source · 39 tests · 414 lines

Tests for scripts/project_status.py -- the workflow-improvements-plan.md

Kind Name Line Description
function test_get_latest_tag_real_repo 46
function test_get_latest_tag_no_tags 52
function test_get_session_number_real_repo 60
function test_get_session_number_no_context_json 66
function test_read_only_never_writes_context_json 73 The whole point of Phase 4: never hand-write/mutate context.json.
function test_get_test_verdict_no_reports_dir 94
function test_get_test_verdict_none_found 99
function test_get_test_verdict_finds_newest 106
function test_get_test_verdict_unparseable 124
function test_get_rtm_summary_missing 136
function test_get_rtm_summary_counts_grades 140
function test_get_rtm_summary_real_repo 159 The real reports/rtm-evidence.json is multi-MB -- summarize, don't blow up.
function test_get_coverage_floor_not_set 170
function test_get_coverage_floor_set 175
function test_get_coverage_floor_real_repo_not_configured 182
function test_get_coverage_floor_no_pyproject 187
function test_get_infra_status_missing_script 194
function test_get_infra_status_real_repo 199
function test_get_stale_tasks_none_when_no_context 209
function test_get_stale_tasks_filters_done_and_recent 213
function test_get_stale_tasks_custom_threshold 233
function test_render_brief_contains_plan_drift_note 246
function test_render_brief_real_repo_has_expected_lines 255
function test_main_brief 267
function test_main_json 275
function test_main_default_prints_both 283
function test_read_context_json_malformed_returns_none 294
function test_get_latest_tag_nonexistent_root_returns_none 299 cwd pointing at a nonexistent dir raises OSError before git even spawns.
function test_get_session_number_state_not_dict 305
function test_get_rtm_summary_malformed_json 310
function test_get_coverage_floor_malformed_toml 319
function test_get_infra_status_timeout 324
function test_get_infra_status_bad_json 332
function test_get_stale_tasks_skips_missing_and_bad_timestamps 340
function test_render_brief_test_verdict_with_passed_failed 367
function test_render_brief_test_verdict_unrecognized_schema 379
function test_render_brief_rtm_error 387
function test_render_brief_many_stale_tasks_truncates 393
function test_project_status_real_subprocess 404