red-hat-storage / errata-tool

Modern Python API to Red Hat's Errata Tool
MIT License
31 stars 34 forks source link

better mocking of API responses #116

Open ktdreyer opened 6 years ago

ktdreyer commented 6 years ago

We could improve the test suite developer experience by using a higher-level mocking library for requests.

An internal tool (devops/release-driver) uses requests_mock to build fixtures for advisories.

There is also requests-staticmock which looks good.

ktdreyer commented 3 years ago

I am really liking https://pypi.org/project/requests-mock/ for https://github.com/ktdreyer/errata-tool-ansible

ktdreyer commented 3 years ago

https://github.com/getsentry/responses has much higher activity , and the API looks similar to requests-mock. I think I would try this one instead of requests-mock.