chore(tests): remove stale tests/test_init.py::test_router — cookiecutter leftover, always-failing #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/test_init.py::test_routerhas been failing for the lifetime of the repo:It originated from the LNBits extension cookiecutter scaffold (commit
42b5eda, Aug 2024, authored upstream bydni ⚡). Two reasons it can never pass under the current test setup:pytest-asyncioplugin in the lnbits test runner. The project deliberately doesn't ship it — the documented workaround across our newer tests isasyncio.runinside the test body (seetests/test_cassette_state_consumer.pyheader). The@pytest.mark.asynciodecorator is a no-op here, and pytest doesn't know how to run anasync deftest without a plugin.include_router— any failure mode would already surface at extension boot. The cassette consumer tests + the resolver tests already exercise the package's__init__.pyimport path transitively.Why fix
Every test run shows:
…which trains the eye to ignore the failure line. Cost: lower baseline-noise gate for spotting a real regression next time something breaks.
Fix
Delete the file. Coverage of "the satmachineadmin router can be imported + included" is provided by:
from .views_api import satmachineadmin_api_router)tests/that imports from..(which triggers package__init__.pyexecution)PR coming as a sibling chore to keep the issue open-to-merge window short.
Refs
42b5eda(feat: code quality, upstream cookiecutter port)tests/test_cassette_state_consumer.py:20-23headerfeat/roster-resolvertest-suite verification (coord-log §17:25Z)test_init.pycookiecutter leftover #35