Orchestrata Ultimate › Tests › Reference › scripts › test_diagnose_test_failure

Tests reference — tests/scripts/test_diagnose_test_failure.py

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

Prose pending.

tests/scripts/test_diagnose_test_failure.py

source · 32 tests · 542 lines

Tests for scripts/diagnose_test_failure.py — the 7-step failure diagnostician.

Covers: core.graph_factory

Kind Name Line Description
function test_parse_failure_log_generic_error_type 47
function test_parse_failure_log_neo4j_constraint_error_overrides_generic 60
function test_parse_failure_log_assertion_error_overrides_generic 75
function test_parse_failure_log_no_failed_line_returns_none 83
function test_parse_failure_log_traceback_extraction_with_double_newline 88
function test_parse_failure_log_traceback_extraction_no_double_newline 106
function test_parse_failure_log_no_traceback_marker 119
function test_parse_failure_log_line_number_extraction 126
function test_parse_failure_log_no_line_number_stays_none 137
function test_read_test_code_extracts_function_body_and_stops_at_next_def 149
function test_read_test_code_file_not_found 173
function test_read_test_code_name_not_present 178
function test_read_test_code_read_error_returns_none 184
function test_find_fixture_code_existing_real_fixture 197
function test_find_fixture_code_not_found 203
function test_find_fixture_code_detects_scope_yield_and_service_markers 234
function test_extract_fixtures_from_test_basic 249
function test_extract_fixtures_from_test_skips_builtins_keeps_typed_defaults 254
function test_extract_fixtures_from_test_no_match_returns_empty 259
function test_check_graph_constraints_real_connection_returns_list 268
function test_check_graph_constraints_connection_failure_returns_empty 311
function test_generate_diagnosis_reports_real_database_not_unknown 322 Regression for the core.neo4j_factory import-path bug (F3): the
function test_generate_diagnosis_full_report_matched_signature_and_fixtures 354
function test_generate_diagnosis_unmatched_signature_and_minimal_fields 405
function test_generate_diagnosis_truncates_long_error_message 426
function test_generate_diagnosis_interference_header_without_test_code 441
function test_main_no_args_prints_error_and_returns_1 460
function test_main_logfile_not_found_returns_1 469
function test_main_logfile_no_failure_found_returns_1 479
function test_main_logfile_happy_path_returns_0 496
function test_main_run_failing_test_returns_0_with_diagnosis 511
function test_main_run_passing_test_returns_1_no_failure 527