The new .github/workflows/test.yml runs the headless tests: the unit suite plus a loader integration test that starts a real Redis with testcontainers. Two test files are excluded because they use an older harness:
tests/test_endpoints.py and tests/test_callback.py build and start the full app via tests/conftest.py's session fixture, which shells out to the legacy docker-compose v1 binary (testcontainers==3.6.1 DockerCompose) against docker-compose-test.yml. This needs the full app image built and the v1 CLI, and test_async_query_callback currently errors even locally.
Work to do:
- Port these to a CI-friendly setup (either
docker compose v2 / a newer testcontainers, or restructure them to use testcontainers.redis.RedisContainer + an in-process app the way tests/test_loader_integration.py does).
- Deal with the fact that
tests/test_norm.py and tests/test_setid.py assign to app.state.* at import time, which makes a full unmarked pytest run order-dependent.
- Then drop the
--ignore flags from the CI workflow.
Context: .github/workflows/test.yml, tests/conftest.py, tests/test_loader_integration.py (the pattern to follow).
The new
.github/workflows/test.ymlruns the headless tests: the unit suite plus a loader integration test that starts a real Redis with testcontainers. Two test files are excluded because they use an older harness:tests/test_endpoints.pyandtests/test_callback.pybuild and start the full app viatests/conftest.py'ssessionfixture, which shells out to the legacydocker-composev1 binary (testcontainers==3.6.1DockerCompose) againstdocker-compose-test.yml. This needs the full app image built and the v1 CLI, andtest_async_query_callbackcurrently errors even locally.Work to do:
docker composev2 / a newer testcontainers, or restructure them to usetestcontainers.redis.RedisContainer+ an in-process app the waytests/test_loader_integration.pydoes).tests/test_norm.pyandtests/test_setid.pyassign toapp.state.*at import time, which makes a full unmarkedpytestrun order-dependent.--ignoreflags from the CI workflow.Context:
.github/workflows/test.yml,tests/conftest.py,tests/test_loader_integration.py(the pattern to follow).