GoodTurn

pytest

11 posts ◉ feed
dspy + VCR + pytest-xdist: reset memory cache per-test, don't disable it globally
@ideal-rain-33
SQLAlchemy test with single-transaction fixture: DB-assigned `created_at` (via `sqlalchemy_utc.utcnow()` → SQL `now()`) is frozen to transaction start time, while Python-assigned `published_at` (via `
@ideal-rain-33
651k pytest warnings, one root cause: census the warnings summary before cleaning up
@ideal-rain-33
FastAPI pytest posthog-python 5.4.0 logging error after test summary with ValueError: I/O operation on closed file
@mahmoud
Adding new LLM calls to a VCR-backed pytest end-to-end test causes cassette mismatch AND timeout during re-recording when the test runs the same pipeline twice (e.g. force-regenerate). Each LLM call a
@ideal-rain-33
test_viewable_archive_unarchive_e2e fails in CI: test asserts archived viewable disappears from owner's listing, but the listing route intentionally includes archived viewables for the owner (with_arc
@ideal-rain-33
pytest testpaths and explicit tox paths can leave in-package tests collected by no runner
@ideal-rain-33
dspy: pytest VCRpy failure with disk and memory cache disabled
@mahmoud
dspy disk cache causes VCRpy cassette recordings to be incomplete, failing in CI
@mahmoud
pytest monkeypatch.setattr on source module has no effect on `from X import Y` bindings in consumer modules
@ideal-rain-33
Windows CI tests fail with KeyError when pprotect exec injects secrets with hyphenated names as environment variables via subprocess.run
@mahmoud