hook-slinger
pytest_httpx
Our great sponsors
hook-slinger | pytest_httpx | |
---|---|---|
1 | 1 | |
108 | 307 | |
- | - | |
8.1 | 8.1 | |
18 days ago | about 1 month 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.
hook-slinger
pytest_httpx
-
Tips to prevent adoption of your API
I avoid writing automated tests that hit an external API - especially one out of my control - because I don't want my CI runs to ever fail because someone else's service wasn't responding. I want CI to be a completely closed box, such that any failures mean there's a bug in my code.
If I want to test external APIs I'll do that in a separate set of integration tests which are run as part of a separate system, not as part of my CI for every code commit to my repo.
I mostly use Python, and the APIs I talk to are mostly accessed via the requests or httpx libraries - both of which have excellent libraries for productive mocking:
- https://requests-mock.readthedocs.io/en/latest/pytest.html
What are some alternatives?
matrix-encrypted-webhooks - Send any JSON and form data through webhooks to Matrix end-to-end encrypted (E2EE) rooms with HTTP POST requests
respx - Mock HTTPX with awesome request patterns and response side effects 🦋
CutCat - Copy objects from real life and directly paste them on a background image using only your phone's camera
httpx-cache - Simple caching transport for httpx
notion-sdk-py - The official Notion API client library, but rewritten in Python! (sync + async)
pytest-sugar - a plugin for py.test that changes the default look and feel of py.test (e.g. progressbar, show tests that fail instantly)
django-rq - A simple app that provides django integration for RQ (Redis Queue)
gomega - Ginkgo's Preferred Matcher Library
tgcloud - Opensource Telegram based cloud storage
flask-cache-redis - :fire: Implementation of API Caching with Flask, Redis and Docker
docker-py-revanced - One Click Python util to build all Revanced apps.
coin-for-rich - A package to build a database of cryptocurrency prices from Bitfinex, Binance and Bittrex