Orchestrata Ultimate › Tests › Reference › scripts › test_ast_daemon_publish

Tests reference — tests/scripts/test_ast_daemon_publish.py

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

Prose pending.

tests/scripts/test_ast_daemon_publish.py

source · 12 tests · 492 lines

Tests for the AST daemon's snapshot publishing (ADR-0097): POST /publish,

Covers: core.traceability/ (package)

Kind Name Line Description
function test_publish_writes_a_snapshot_byte_compatible_with_the_cli 233
function test_watcher_republishes_once_after_an_edit_and_updates_file_meta 248
function test_publish_is_atomic_readers_never_see_partial_json_or_temp_files 273
function test_since_is_a_noop_when_the_last_publish_already_covers_the_edit 304
function test_unchanged_tree_is_not_rewritten_but_the_mtime_is_refreshed 318
function test_runtime_calls_are_reapplied_so_a_publish_never_zeroes_them 333
function test_deleted_module_is_dropped_from_the_published_snapshot 358
function test_publish_failure_is_recorded_and_the_daemon_keeps_serving 370
function test_publish_route_is_409_and_health_has_no_publish_when_publishing_is_off 386
function test_publish_flag_without_declared_roots_leaves_publishing_off 426
function test_publish_flag_reads_roots_from_env_ast_roots_env_like_envrc 442
function test_declared_roots_prefers_the_environment_over_the_file 463