pytest_httpx

pytest fixture to mock HTTPX (by Colin-b)

Pytest_httpx Alternatives

Similar projects and alternatives to pytest_httpx based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better pytest_httpx alternative or higher similarity.

pytest_httpx reviews and mentions

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

Stats

Basic pytest_httpx repo stats
1
307
8.1
about 1 month ago

Colin-b/pytest_httpx is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of pytest_httpx is Python.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com