test_gateway_image probes pre-refactor flat modules (import supervise) and fails when run
#429
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
tests/integration/test_gateway_image.py::test_python_imports_supervise_moduleprobes the image with:Those are the pre-
5ad3449flat sibling modules. They now live in the installed package asbot_bottle.superviseandbot_bottle.supervise_server; there is no top-levelsupervise.pyin the repo. Run against the current image the test fails:Why it hasn't been noticed
The whole
TestGatewayImageclass carries@unittest.skipIf(os.environ.get("GITEA_ACTIONS") == "true", ...)— it is marked interactive-only because the build pulls a large base and the runner's storage/time budget can't take it. So it never executes in CI and only fails for someone running the integration suite by hand.This is the same stale-reference class as #427: the
5ad3449refactor left assertions pointing at the old flat layout, and nothing executed them.Fix
Probe the package imports instead. With that change all 4 tests in the class pass locally against a freshly built gateway image.
Out of scope
Whether this class should run in CI at all is a separate question — it overlaps #414 (per-backend skip visibility) and #426 (no macOS runner). This issue is only about the assertion being wrong.