betamax
betamax copied to clipboard
Use pytest-httpbin
Ideally, this will get rid of some of our spurious test failures that occur from relying on httpbin.org and will make the test suite faster as we won't be going over the network, we'll just be using localhost (which is still slow but less slow than actually going over the network).
httpbin.org has fixed URL. pytest-httpbin has currently random port until https://github.com/kevin1024/pytest-httpbin/issues/24 is fixed. This might turn to be a problem (not sure yet).
Why would that be a problem if we use the fixture? Requests hasn't had an issue with it.
I meant with URL based matchers.
And this is why I need your help 😆
BTW https://github.com/kevin1024/pytest-httpbin/issues/24 is fixed now.