๐งช Test suite
ALL 148 PASSED live pytest run of bot/tests ยท executed 22:02:46, took 88.4s
โป live re-run available on the local HQ only
Every guard on the machinery: fills and R-math, cost itemization (incl. the frozen
Dukascopy hash and the Vantage variant), kill criteria, gate fail-closed behavior, registry lineage
discipline, executor/MT5 wiring. Research scripts (scans, runners) are governed by their
pre-registrations and null batteries instead โ see engine/scans/.
test_costmodel.py 5/5
- โ test_sessions
- โ test_rollover_spread_dwarfs_london
- โ test_triple_swap_wednesday
- โ test_stop_exit_costs_more_than_target_exit
- โ test_gross_edge_can_die_net
test_costmodel_vantage.py 3/3
- โ test_vantage_variant_exists_with_documented_constants
- โ test_vantage_round_trip_cheaper_than_dukascopy_variant
- โ test_frozen_btcusd_dukascopy_hash_unmoved
test_edgelab.py 19/19
- โ test_validation_request_raises
- โ test_vault_request_raises
- โ test_unknown_symbol_raises
- โ test_research_files_never_leave_the_window
- โ test_feature_definitions_match_hand_computation
- โ test_baseline_matches_direct_rolling
- โ test_merge_level_features_passthrough_when_no_parquet
- โ test_merge_level_features_joins_by_index
- โ test_merge_level_features_raises_on_column_collision
- โ test_random_data_yields_no_signed_signal
- โ test_config_round_trip
- โ test_variants_dict_passthrough
- โ test_ledger_append_and_cumulative
- โ test_ledger_alters_legacy_table_preserving_rows
- โ test_benjamini_hochberg_all_reject
- โ test_benjamini_hochberg_step_up_single
- โ test_benjamini_hochberg_step_up_rescues_middle
- โ test_benjamini_hochberg_empty
- โ test_ledger_pvalues_feed_fdr
test_engine.py 4/4
- โ test_breakout_long_target
- โ test_breakout_long_stopped
- โ test_one_trade_per_day
- โ test_net_always_below_gross
test_executor.py 8/8
- โ test_stopless_order_refused
- โ test_duplicate_submit_adopts_existing
- โ test_client_order_id_deterministic
- โ test_reconcile_detects_orphan_and_halts
- โ test_reconcile_missing_position_flagged_but_no_halt
- โ test_daily_loss_breaker_trips_and_unlocks_next_session
- โ test_anomaly_halt_blocks_wide_spread_and_fails_closed
- โ test_gatekeeper_breaker_outranks_everything
test_expansion.py 11/11
- โ test_detects_single_displacement_event
- โ test_trade_enters_after_pullback_with_structural_stop
- โ test_full_giveback_cancels
- โ test_no_resumption_no_trade
- โ test_stop_hit_loses_about_one_r
- โ test_baseline_mode_trades_same_event_coin_flip
- โ test_min_baseline_suppresses_zero_baseline_event
- โ test_rollover_event_end_dropped
- โ test_rollover_entry_search_cancelled
- โ test_stop_floor_binds_and_sets_flag
- โ test_v1_defaults_unchanged_no_floor_no_guard
test_gate.py 11/11
- โ test_pass_decision
- โ test_resize_down_clamped_to_valid_range
- โ test_api_error_fails_closed
- โ test_slow_response_fails_closed
- โ test_garbage_output_fails_closed
- โ test_null_size_factor_on_pass_is_not_garbage
- โ test_refusal_fails_closed
- โ test_version_changes_with_prompt_and_model
- โ test_shadow_hits_target
- โ test_shadow_hits_stop_with_slippage
- โ test_shadow_no_bars_returns_none
test_goldenset.py 4/4
- โ test_scenarios_file_well_formed
- โ test_perfect_gate_is_deployable
- โ test_one_regression_blocks_deployment
- โ test_timeout_counts_as_veto_but_reported_distinctly
test_killcriteria.py 8/8
- โ test_edge_kill_needs_sample_first
- โ test_edge_kill_triggers_at_threshold
- โ test_drawdown_halt_multiplier
- โ test_drawdown_halt_fails_closed_without_mentor_figure
- โ test_baseline_kill_only_on_complete_window
- โ test_gate_kill_deletes_worthless_gate
- โ test_gate_kill_waits_for_sample_and_window
- โ test_evaluate_all_reports_every_criterion
test_ledger.py 7/7
- โ test_pass_row_roundtrips
- โ test_veto_without_counterfactual_refused
- โ test_timeout_veto_and_resize_also_need_counterfactual
- โ test_bad_enums_refused
- โ test_gate_attribution_view
- โ test_fill_drift
- โ test_persists_across_reopen
test_levels.py 12/12
- โ test_decay_weight_halflife
- โ test_round_grid_steps_at_declared_price_points
- โ test_largest_step_le_family_boundaries
- โ test_round_grid_lines_are_exact_multiples_within_10pct
- โ test_causality_a_truncated_rebuild_matches_full
- โ test_causality_b_pivot_born_at_exact_confirmation
- โ test_fixture_a_pivot_plus_touch_hand_computed_score
- โ test_fixture_b_break_sets_broken_at_and_keeps_level
- โ test_fixture_c_two_pivots_merge_with_weighted_center
- โ test_standing_prior_day_and_week_levels
- โ test_features_at_scenario
- โ test_batch_level_features_matches_per_timestamp_reference
test_mt5bridge.py 7/7
- โ test_place_maps_identity_and_stop
- โ test_stopless_order_never_reaches_terminal
- โ test_place_timeout_raises_not_resends
- โ test_comment_mangling_broker_falls_back_to_magic
- โ test_idempotent_submitter_adopts_after_timeout_retry
- โ test_reconcile_sees_bridge_positions
- โ test_pending_orders_are_not_positions
test_pipeline.py 5/5
- โ test_walkforward_produces_oos
- โ test_baseline_runs_on_windows
- โ test_verdict_fails_on_random_walk
- โ test_load_pair_roundtrip
- โ test_load_pair_refuses_partial_dataset
test_pipeline_e2e.py 4/4
- โ test_full_session_every_path
- โ test_breaker_outranks_gate_pass
- โ test_no_gate_runs_core_alone
- โ test_gate_timeout_fails_closed_with_counterfactual
test_portfolio.py 13/13
- โ test_empty_trades_give_empty_curve_and_deposit_summary
- โ test_flat_mode_is_exactly_deposit_plus_cumsum
- โ test_summary_change_and_drawdown
- โ test_compound_scales_risk_off_running_equity
- โ test_compound_ignores_simulated_dollars_and_reads_r
- โ test_window_is_relative_to_the_curves_own_end_not_today
- โ test_window_carries_the_opening_balance_in
- โ test_period_table_measures_each_window_from_its_own_opening_balance
- โ test_period_table_flags_spans_longer_than_the_run_as_partial
- โ test_percent_is_undefined_once_the_opening_balance_is_not_positive
- โ test_ruin_is_flagged_with_the_date_it_happened
- โ test_headline_states_winning_losing_flat
- โ test_series_is_strictly_increasing_in_time
test_registry.py 8/8
- โ test_same_run_updates_in_place
- โ test_gate_change_is_a_separate_run
- โ test_kinds_do_not_collide
- โ test_bad_kind_refused
- โ test_version_hash_tracks_rule_constants
- โ test_cost_version_tracks_the_charged_costs
- โ test_lineage_is_mandatory_and_validated
- โ test_same_rules_different_lineage_are_separate_runs
test_tracking.py 4/4
- โ test_fingerprint_missing_file_is_exploratory
- โ test_fingerprint_changes_when_prereg_edited
- โ test_log_run_writes_to_isolated_store
- โ test_log_run_swallows_tracking_failure
test_watchdog.py 5/5
- โ test_fresh_heartbeat_is_ok_and_silent
- โ test_missing_heartbeat_alerts_once_then_cooldown
- โ test_recovery_notice_and_reset
- โ test_beat_roundtrip_and_boundary
- โ test_garbage_heartbeat_file_treated_as_missing
test_xauusd_wiring.py 10/10
- โ test_for_symbol_xauusd_frozen_params
- โ test_for_symbol_case_insensitive
- โ test_for_symbol_fx_matches_legacy_construction[GBPUSD]
- โ test_for_symbol_fx_matches_legacy_construction[EURUSD]
- โ test_for_symbol_fx_matches_legacy_construction[USDJPY]
- โ test_fx_cost_version_stable[GBPUSD]
- โ test_fx_cost_version_stable[EURUSD]
- โ test_fx_cost_version_pinned
- โ test_load_pair_xauusd_frame
- โ test_run_expansion_gold_pip_conversion