Farshid's Weblog

Posts tagged “pytest”

  1. Checking if something is callable or async callable in Python
  2. Snapshot testing with Syrupy
  3. Asserting a dictionary is a subset of another dictionary
  4. Testing a Click app with streaming input
  5. Mocking a Textract LimitExceededException with boto
  6. How to mock httpx using pytest-mock
  7. Using VCR and pytest with pytest-recording
  8. Session-scoped temporary directories in pytest
  9. Async fixtures with pytest-asyncio
  10. Treating warnings as errors in pytest
  11. Mocking Stripe signature checks in a pytest fixture
  12. Running pytest against a specific Python version with uv run
  13. pytest coverage with context
  14. Start a server in a subprocess during a pytest session
  15. Registering temporary pluggy plugins inside tests
  16. Mocking subprocess with pytest-subprocess
  17. Show files opened by pytest tests
  18. Using namedtuple for pytest parameterized tests
  19. Quick and dirty mock testing with mock_calls
  20. Writing pytest tests against tools written with argparse
  21. Opt-in integration tests with pytest --integration
  22. Code coverage using pytest and codecov.io
  23. A tip for debugging pytest-httpx
  24. Using pytest and Playwright to test a JavaScript web application