Closed arielsvn closed 4 years ago
Goal this sprint: Get at least 80% of the way towards using this across our test suite.
OK so I made a lot of progress on this last sprint. So far I've:
I tested using VCR in the workers. It works well. I've also made a way to mock urlopen so we can mock out file downloads for downloader tests.
This issue is now for everything but tests in the workers sub-project. https://github.com/AlexsLemonade/refinebio/issues/2085 will be for the workers sub-project.
Context
Our tests depend on several 3rd party APIs, sometimes they fail when those services are down.
Problem or idea
Running the tests multiple times should give the same result. Sometimes I see failed tests and I'm not sure if it's because there's something wrong with our code, or because some service is down.
Solution or next step
Filing this out of frustration... is there any other way that we can achieve the same we have now and make the tests more reliable?
Maybe we can have an external status page to check these services and have our tests use mocked responses?
@davidsmejia @kurtwheeler what do you think?