betamax icon indicating copy to clipboard operation
betamax copied to clipboard

Use pytest-httpbin

Open sigmavirus24 opened this issue 6 years ago • 5 comments

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).

sigmavirus24 avatar Oct 15 '17 13:10 sigmavirus24

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).

hroncok avatar Oct 28 '17 19:10 hroncok

Why would that be a problem if we use the fixture? Requests hasn't had an issue with it.

sigmavirus24 avatar Oct 28 '17 22:10 sigmavirus24

I meant with URL based matchers.

hroncok avatar Oct 28 '17 22:10 hroncok

And this is why I need your help 😆

sigmavirus24 avatar Oct 29 '17 12:10 sigmavirus24

BTW https://github.com/kevin1024/pytest-httpbin/issues/24 is fixed now.

hroncok avatar Oct 29 '17 12:10 hroncok