betamaxpy / betamax

A VCR imitation designed only for python-requests.
https://betamax.readthedocs.io/en/latest/
Other
565 stars 62 forks source link

Use pytest-httpbin #145

Open sigmavirus24 opened 6 years ago

sigmavirus24 commented 6 years ago

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

hroncok commented 6 years ago

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

sigmavirus24 commented 6 years ago

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

hroncok commented 6 years ago

I meant with URL based matchers.

sigmavirus24 commented 6 years ago

And this is why I need your help 😆

hroncok commented 6 years ago

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