steam-backlog-enforcer/steam_backlog_enforcer/tests
Krzysztof kuhy Rudnicki 07e6e15b6e Split steam_api and _scanning_confidence under the cap
steam_api becomes a thin re-export over _steam_models (dataclasses) and
_steam_api_client (HTTP). Inverting it that way rather than moving the
client out and importing it back matters: _steam_api_client needs GameInfo,
so a re-export from the old module would have been a cycle. 47 call sites
import from steam_api and none of them change.

_scanning_confidence sheds the poll backfill/reporting pair into
_polls_reporting, and re-exports both.

Test patch targets follow the code: the tests for _report_poll_confidence
now patch _polls_reporting._echo, because that is where the name is bound.
Patching the re-exporting module intercepts nothing, and the test then
fails on an empty output list rather than an import error, which is why
these are worth being careful about.

1347 tests pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016A1EYiv7e7HGhET84oa9M3
2026-08-24 14:25:43 +02:00
..
__init__.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_isolate_playtime.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_main_helpers.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
_no_subprocess.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_total_block_paths.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
conftest.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
test_actions_abandon_manual_pick.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_actions_status_payload.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_actions.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_cmd_done_part2.py chore: set up as standalone repo 2026-05-28 07:21:29 +02:00
test_cmd_playtime.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_config_interactive_setup.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_config.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_desktop_env.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_desktop_session_gating.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_desktop_user_cmd.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_do_enforce.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_enforce_loop_part2.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_enforce_loop_part3.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_enforce_loop.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_enforce_steps.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_enforcer_part2.py feat: add block-gaming command (Stage 4) + guard-lib migration cleanup 2026-07-04 11:45:54 +02:00
test_enforcer.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_ensure_debug_port.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_ensure_steam_running.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_game_install_guard.py Re-arm the no-library warning before install_game's early return 2026-08-24 14:04:54 +02:00
test_game_install_part2.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_game_install_part3.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_game_install.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_game_names.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_hltb_build_search_payload.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_confidence_helpers.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_detail_extract_comp100_avg_and_high.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_detail_fetch_leisure_times_save_interval.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_detail_fetch_leisure_times.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_detail_process_game_detail.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_detail.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_fetch_hltb_detail_missing.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_part2.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_part3.py chore: set up as standalone repo 2026-05-28 07:21:29 +02:00
test_hltb_pick_best_hltb_entry_alias_exact_match_beats_spinoff.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_pick_best_hltb_entry.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_search_extract_leisure_hours.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_search_fetch_batch_hltb.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_search_part2.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_search_zero_comp_100_skipped.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb_search.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_hltb.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_library_hider_ops.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_library_hider_part2.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_library_hider.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_main_abandon.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_dispatch_extra.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_dispatch.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_done.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_entrypoint.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_install.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_misc_gating.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_misc.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_part2.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_part2b.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_part2c.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_pick_cap.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_pick_manual.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_picks.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_shared.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_main_status.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_mcp_actions.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_mcp_gaming_time.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_mcp.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_pacman.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_block_part2.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_block.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_cutoff.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_kill.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_part2.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_procs.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_proctree.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime_tick.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_playtime.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_polls_tracking_backfill_polls_for_finished.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_polls_tracking_part2.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
test_polls_tracking_report_assigned_confidence.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_polls_tracking_report_poll_confidence_chosen_zero_polls_report_poll_confidence_chosen_equals_min.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
test_polls_tracking_report_poll_confidence_chosen_zero_polls.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
test_polls_tracking.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_protondb_fetch_batch.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_protondb_fetch_one.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_protondb.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_cached_confidence_overlay_avoids_refetch.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_confidence_helpers_pick_next_shortest_candidate_no_echo_whe.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_confidence_helpers.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_part2.py chore: set up as standalone repo 2026-05-28 07:21:29 +02:00
test_scanning_part3.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_part4.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_pick_next_game_sequential.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_pick_next_game_unknown_hours.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning_pick_next_game.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_scanning.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_cmd_stats_refilter_called_when_ensure_rush_data_re.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_cmd_stats.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_ensure_rush_data.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_print_player_speed_scenario.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_print_worst_example.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_refresh_recently_played_completions.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_sum_hours.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats_unplayable_rating_counts_linux_skipped.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_stats.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_steam_api_steam_a_p_i_client.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
test_steam_api.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_steam_launch_lifecycle.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_steam_restart.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_store_blocker_block_via_hosts_install.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_store_blocker_part2.py feat: add block-gaming command (Stage 4) + guard-lib migration cleanup 2026-07-04 11:45:54 +02:00
test_store_blocker_unblock_store.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_store_blocker.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_total_block_hosts.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_total_block_iptables.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_total_block_lifecycle.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_total_block_purge.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_total_block_remnants.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_total_block.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
test_update_restart_guard.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
test_web_dataset_build_games.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_dataset_compute_pace_vs_h_l_t_b_both_rush_and_leisure_interpolation_comp.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_dataset_compute_pace_vs_h_l_t_b.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_dataset_count_complete_since_start.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_dataset_dataset_to_payload.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_dataset.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_web_server.py Split main.py (1076 lines) into a main/ package 2026-08-23 19:56:34 +02:00
test_whitelist_add_pending_exception.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_whitelist_immutable_flag_is_append_audit_log.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_whitelist_immutable_flag_is.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00
test_whitelist.py Bring every test file under the 250-line cap 2026-08-24 14:16:08 +02:00