pytest-codeblocks
pytest-recording
pytest-codeblocks | pytest-recording | |
---|---|---|
1 | 1 | |
92 | 382 | |
- | 2.1% | |
5.4 | 6.7 | |
3 months ago | 5 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pytest-codeblocks
-
pytest-codeblocks: Test snippets from your READMEs
If you have code blocks in your README, you can pytest them with pytest-codeblocks. pip install pytest-codeblocks pytest --codeblocks README.md I just added better config support for it, especially if you'd like to conditionally skip testing some of the blocks (skipif).
pytest-recording
-
Two Methods for Testing HTTPS API Calls with Python and pytest and also Communicating with the In-laws
An alternate approach involves using VCR.py, a tool that records HTTP interactions in YAML files, then intercepts future HTTP requests and plays back the recorded responses. In this tutorial, we will use pytest-vcr to interface with VCR.py, although pytest-recording is another good option for doing the same.
What are some alternatives?
pytest-flask-sqlalchemy - A pytest plugin for preserving test isolation in Flask-SQLAlchemy using database transactions.
responses - A utility for mocking out the Python Requests library.
Schemathesis - Automate your API Testing: catch crashes, validate specs, and save time
betamax - A VCR imitation designed only for python-requests.
tavern - A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
openverse-catalog - Identifies and collects data on cc-licensed content across web crawl data and public apis.
pytest-langchain - ✅ Pytest-style test runner for langchain projects
pypiglatin - An example of a Python-based HTTPS client with associated tests.