Orchestrata Ultimate › Tests › Reference › scripts › test_check_async_await
Tests reference — tests/scripts/test_check_async_await.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_check_async_await.py
source · 15 tests · 248 lines
Tests for scripts/check_async_await.py — the async-correctness gate that
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_excluded_matches_generated_recovery |
76 | |
| function | test_excluded_matches_generated_broken |
81 | |
| function | test_excluded_false_for_normal_path |
86 | |
| function | test_is_async_misuse_true_for_report_unused_coroutine |
91 | |
| function | test_is_async_misuse_true_for_coroutine_op_rule |
98 | |
| function | test_is_async_misuse_false_for_op_rule_without_coroutine_type |
107 | |
| function | test_is_async_misuse_false_for_non_op_rule_with_coroutine_type_text |
113 | |
| function | test_is_async_misuse_false_for_missing_rule_and_message |
122 | |
| function | test_main_skips_when_pyright_not_on_path |
130 | Shadow the pyright executable by giving the subprocess a PATH |
| function | test_main_json_decode_error_when_targets_missing |
147 | Both TARGETS ("src/orchestrata_ultimate", "tests") are hardcoded and |
| function | test_main_clean_tree_exits_0 |
161 | |
| function | test_main_detects_bare_unused_coroutine_call |
177 | |
| function | test_main_detects_operation_on_unawaited_coroutine |
191 | |
| function | test_main_excludes_generated_recovery_dir |
207 | A genuine un-awaited coroutine inside tests/generated_recovery/ must |
| function | test_main_in_process_clean_and_blocked |
224 | Drive main() directly (loaded module, real cwd) so both outcomes are |