Orchestrata Ultimate › Tests › Reference › scripts › test_flake_report
Tests reference — tests/scripts/test_flake_report.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_flake_report.py
source · 19 tests · 187 lines
Tests for scripts/flake_report.py — the .flake_recoveries.ndjson
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_main_entrypoint_reads_stdin_via_real_subprocess |
174 | The main guard + real stdin path, via one real subprocess. |
| class | TestParseLine |
24 | |
| method | TestParseLine.test_valid_line |
25 | |
| method | TestParseLine.test_int_ts_coerced_to_float |
31 | |
| method | TestParseLine.test_bad_json_returns_none |
37 | |
| method | TestParseLine.test_non_dict_json_returns_none |
40 | |
| method | TestParseLine.test_missing_ts_returns_none |
43 | |
| method | TestParseLine.test_missing_module_returns_none |
46 | |
| method | TestParseLine.test_wrong_types_return_none |
49 | |
| class | TestNumericTimestampsJsonAcceptsButDatetimeCannot |
54 | Values json.loads accepts as int/float that datetime rejects. |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_nan_ts_is_malformed |
67 | |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_infinity_ts_is_malformed |
70 | |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_oversized_int_ts_is_malformed |
74 | A 400-digit int raised OverflowError inside float(ts) itself. |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_out_of_range_finite_float_ts_is_malformed |
78 | Finite and float-representable, still outside platform time_t. |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_boolean_ts_is_malformed |
82 | bool subclasses int, so true was silently accepted as |
| method | TestNumericTimestampsJsonAcceptsButDatetimeCannot.test_process_survives_them_and_counts_them_skipped |
88 | The contract that actually broke: one bad record must not take out |
| class | TestFormatDate |
111 | |
| method | TestFormatDate.test_utc_date |
112 | |
| class | TestProcess |
117 | |
| method | TestProcess.test_empty_input_prints_no_recoveries |
118 | |
| method | TestProcess.test_count_desc_then_module_asc_with_cross_day_range |
128 | |
| method | TestProcess.test_all_malformed_reports_no_recoveries_and_skip_count |
153 | |
| method | TestProcess.test_blank_lines_are_ignored_not_counted_malformed |
163 |