Colin Bounouar

Results 96 comments of Colin Bounouar

Hello @felixscherz Thanks for the proposal. The next release will include a pytest marker allowing to configure `assert_all_responses_were_requested` per test case. According to the test case you wrote, I assume...

This was released as part of version 0.31.0 today

hello, we advocate for a single way to create new multi auth. meaning using already exposed SupportMultiAuth as in https://github.com/Colin-b/httpx_auth?tab=readme-ov-file#multiple-authentication-at-once current implementation is using multiauth class but we would like...

Hello @mvanderlee Can you share what you were doing in v0.30? I have trouble understanding your use case. Thanks again

I see several points here: 1. You want to be able to add optional responses (might or might not be called depending on context). This is indeed possible via the...

Hello @victor-h-costa Order of parameters potentially matters in the API you are reaching out. This looks however like a valid use case but I don't know when and how I...

I would say that this is not the expected behavior indeed. Feel free to submit a PR

Hello @CarliJoy , I am not sure to follow, why can't this be achieved with [the `should_mock` option](https://github.com/Colin-b/pytest_httpx?tab=readme-ov-file#do-not-mock-some-requests) set [on the full test suite](https://github.com/Colin-b/pytest_httpx?tab=readme-ov-file#for-the-whole-test-suite)?

Your `should_mock` callable could rely on some shared variable (a list of urls, hosts, headers, etc... that you would base yourself upon to know if you should mock or not)...