Skip to content

Tests run headless: skip GUI tests without tkinter, document venv setup #64

Open

Description

@Fazorath

cd EveProfitManager && python -m unittest discover is the documented offline test run (README, CI), and the tests mock ESI/SSO. But on a host without a venv or tkinter (like Arcanum), 8 of 18 test modules fail at import: test_cargo_fetch, test_cargo_page, test_cli_abyss, test_detect, test_payouts, test_pocket, test_theme, test_wallet_page. 97 tests ran with 8 errors (2026-11-16).

Acceptance criteria

  • Logic tests don't need tkinter/customtkinter to import: move GUI imports out of module scope in the code under test, or split the logic out, wherever that's cheap.
  • Tests that truly need a GUI skip with a clear reason (unittest.skipUnless) when tkinter or customtkinter is missing, instead of erroring.
  • On a host with no tkinter, python -m unittest discover exits 0, with only skips for the GUI tests.
  • README's "Run the tests" section gives the venv setup (python -m venv .venv && .venv/bin/pip install -r requirements.txt) and notes that tkinter comes from the OS package (python3-tk).
  • CI still runs the full suite with no skips.

From Workbench #60 (fast local test loops for agents).

Activity

  1. added
    ready-for-agent
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions