Colin-b/pytest_httpx

Add param to disable verify over non-requested mock.

Closed this issue · 3 comments

I had a scenario where I wanted to all request to be verified about over non-request, but just ONE request I wanted to be free verification.

With this new feature I can achieve this logic.

I created this PR #76.

evbo commented

@Bernardoow I have an internal (behind a firewall) https endpoint that does no use SSL certs. Am I reading the title of this issue correctly that what you're proposing will configure httpx-pytest to not use SSL certs (e.g. verify=False for the httpx client)?

This would be valuable in tests since forgetting verify=False will completely block operation in production for me.

Hello @evbo,

That is not what this request is about.
Could you elaborate your need in a separate issue please?

Thanks :)

As explained in the pull request, #137 should address this is a clean way.