pytest_httpx VS tavern

Compare pytest_httpx vs tavern and see what are their differences.

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 (by taverntesting)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pytest_httpx tavern
1 1
308 992
- 0.7%
8.1 8.2
about 1 month ago 5 days ago
Python Python
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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_httpx

Posts with mentions or reviews of pytest_httpx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-16.
  • Tips to prevent adoption of your API
    2 projects | news.ycombinator.com | 16 Jun 2021
    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

    - https://github.com/Colin-b/pytest_httpx

tavern

Posts with mentions or reviews of tavern. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-19.

What are some alternatives?

When comparing pytest_httpx and tavern you can also consider the following projects:

respx - Mock HTTPX with awesome request patterns and response side effects 🦋

pytest-recording - A pytest plugin that allows recording network interactions via VCR.py

hook-slinger - A generic service to send, retry, and manage webhooks

pytest-mongodb - pytest plugin for mocking MongoDB with fixtures

httpx-cache - Simple caching transport for httpx

dirty-equals - Doing dirty (but extremely useful) things with equals.

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)

gabbi - Declarative HTTP Testing for Python and anything else

gomega - Ginkgo's Preferred Matcher Library

pytest-langchain - ✅ Pytest-style test runner for langchain projects

pytest-describe - Describe-style plugin for the pytest framework

insomnia - The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.