Orchestrata Ultimate › Tests › Reference › plugins

Tests reference — tests/plugins

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

Prose pending.

Modules

Module Tests Covers
diagnostic.py 0 0
git_sentinel.py 0 0
services.py 0 0
test_git_sentinel.py 34 0
test_git_sentinel_untracked_root.py 19 0

Module details

tests/plugins/diagnostic.py

source · 0 tests · 169 lines

pytest plugin for inline auto-diagnosis of test failures.

tests/plugins/git_sentinel.py

source · 0 tests · 731 lines

pytest plugin: live-repository mutation sentinel + GIT_* env scrub.

tests/plugins/services.py

source · 0 tests · 70 lines

pytest plugin: auto-start test infrastructure (Redis + Neo4j) before tests.

tests/plugins/test_git_sentinel.py

source · 34 tests · 500 lines

Tests for tests.plugins.git_sentinel — the live-repo mutation sentinel.

Kind Name Line Description
function test_resolve_watch_targets_on_real_repo 86
function test_resolve_watch_targets_missing_git_dir_returns_none 97
function test_resolve_watch_targets_nonexistent_path_returns_none 103
function test_clean_run_produces_no_diff 107
function test_commit_is_detected_as_ref_change 115
function test_config_write_is_detected_and_report_shows_key 134
function test_checkout_moves_head_is_detected 149
function test_detached_head_move_is_detected 161
function test_format_changes_config_diff_is_line_level 172
function test_diff_snapshots_no_changes_for_identical_snapshots 185
function test_diff_snapshots_detects_missing_to_present 190
function test_resolve_watch_targets_disables_on_short_git_output 197
function test_format_changes_renders_missing_before_as_placeholder 214
function test_violation_message_contains_where_paths_and_changes 225
function test_watch_targets_is_a_frozen_dataclass 237
function test_split_changes_partitions_tree_from_ref 245
function test_split_changes_empty_list 259
function test_resolve_head_ref_matches_git_rev_parse 263
function test_resolve_head_ref_returns_none_outside_repo 268
function test_resolve_head_ref_missing_git_executable_returns_none 274
function test_resolve_committer_names_the_commit_author 280
function test_resolve_committer_returns_none_for_unknown_ref 287
function test_resolve_committer_missing_git_executable_returns_none 291
function test_hook_clean_run_passes 339
function test_hook_ref_advance_commit_is_advisory_and_run_stays_green 349
function test_hook_move_head_with_untouched_tree_is_advisory_and_green 371
function test_hook_config_mutation_fails_and_shows_key 396
function test_hook_checkout_mutation_fails 410
function test_hook_sessionfinish_ref_advance_is_advisory_not_failure 423
function test_hook_missing_git_dir_disables_sentinel_but_suite_still_runs 449
function test_scrub_clears_a_preset_git_env_var 469
function test_scrub_removes_every_declared_var 477
function test_scrub_is_a_noop_when_nothing_to_remove 485
function test_conftest_scrub_actually_ran_in_this_process 492 tests/conftest.py calls scrub_git_env_vars(os.environ) at import time —

tests/plugins/test_git_sentinel_untracked_root.py

source · 19 tests · 278 lines

Tests for UntrackedRootPathDetector and its pytest hooks (WI-TESTGEN, task 575).

Kind Name Line Description
function test_clean_repo_snapshot_is_empty 86
function test_snapshot_lists_new_file_and_directory_including_empty 90
function test_snapshot_collapses_nested_paths_to_the_top_level_entry 97
function test_snapshot_ignores_gitignored_entries 104
function test_snapshot_ignores_interpreter_and_pytest_noise 110
function test_snapshot_ignores_tracked_files 118
function test_untracked_file_inside_a_tracked_directory_is_not_a_root_entry 123
function test_directory_holding_only_self_ignored_content_is_not_listed 134
function test_directory_with_a_visible_file_next_to_self_ignored_content_is_listed 145
function test_appeared_is_sorted_difference 156
function test_snapshot_outside_a_repo_raises 163
function test_snapshot_with_missing_git_executable_raises 168
function test_module_that_creates_a_root_directory_fails_naming_it 176
function test_module_that_writes_only_ignored_paths_passes 193
function test_preexisting_untracked_entry_is_not_blamed 205
function test_only_the_module_that_created_the_entry_is_blamed 214
function test_entry_created_at_session_teardown_fails_the_session 235
function test_entry_created_during_collection_is_blamed_on_the_module 254
function test_non_git_watch_dir_disables_the_check_but_suite_runs 269

Support files

Fixtures, package markers and helpers without test functions.