Orchestrata Ultimate › Tests › Reference › scripts › test_check_secret_leaks_cli
Tests reference — tests/scripts/test_check_secret_leaks_cli.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_check_secret_leaks_cli.py
source · 14 tests · 230 lines
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_numeric_value_is_a_placeholder |
81 | A bare integer/float is config, not a credential — real secrets are never |
| function | test_render_marks_waived_finding |
91 | |
| function | test_iter_tracked_files_wraps_git_spawn_failure |
110 | When git cannot even be spawned (here: a cwd that does not exist, which |
| function | test_read_text_returns_none_for_a_directory |
122 | read_bytes() on a directory raises IsADirectoryError (an OSError); the |
| function | test_binary_file_is_skipped |
128 | |
| function | test_non_utf8_file_is_skipped |
134 | |
| function | test_exempt_path_is_never_scanned |
143 | .env.example is placeholders by contract; even a live-looking value in |
| function | test_print_text_report_lists_failures_and_waivers |
153 | |
| function | test_print_text_report_pass_shape |
182 | |
| function | test_build_parser_parses_both_flags |
191 | |
| function | test_main_returns_2_for_a_missing_repo_root |
200 | |
| function | test_main_returns_2_when_git_cannot_answer |
206 | A plain directory is not a git repository; exit 2, not a vacuous PASS. |
| function | test_main_json_output_reports_the_violation |
213 | |
| function | test_main_text_output_passes_on_a_clean_repo |
226 |