Skip to content

Extract the multi-backend test harness from the Vuforia fixtures - #3413

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/rate-limit-library-choice
Aug 11, 2026
Merged

Extract the multi-backend test harness from the Vuforia fixtures#3413
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/rate-limit-library-choice

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

The mechanics of running one test suite against several interchangeable backends — a --skip-<backend> option, parametrize IDs, and setup — were repeated in each of the three backend fixtures, so they now live in tests/backend_harness.py, which knows nothing about Vuforia and does not import from mock_vws. Backends are still identified by VuforiaBackend members, so the test-side comparisons against VuforiaBackend.REAL are untouched, and a _bind_setup helper binds the five-argument setup shared by the two fixtures which need it. Collected test IDs are unchanged: pytest --collect-only returns the same 1585 node IDs before and after this change. All three fixtures were exercised under --skip-real, and the new and changed files are clean under ruff, mypy, pyright, pylint and interrogate. The intent is that the harness can later be extracted as a pytest plugin by moving the file rather than rewriting it.

🤖 Generated with Claude Code

The mechanics of running one test suite against several interchangeable
backends - a skip option per backend, parametrize IDs, and setup - were
repeated in each of the three backend fixtures. Move them to
``tests/backend_harness.py``, which knows nothing about Vuforia and does
not import from ``mock_vws``, so that it can later be extracted as a
``pytest`` plugin.

Backends are still identified by ``VuforiaBackend`` members, and the
collected test IDs are unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant