Fix remaining issues with tests
In #266 we made a lot of improvement on the tests, but we had to throw in the towel on a few of the issues:
-
The
searchtests might not be testing anything. See https://github.com/OperationCode/resources_api/pull/266#discussion_r361545451 -
There's almost certainly a better abstraction for
test_algolia_exception_errorandtest_algolia_unreachable_host_errorbecause they are the exact same test, just with different fake errors returned from algolia. Someone can go in and abstract out the similarities and perhaps inject the mocks just where they're needed to cut down on the code and/or execution time. See https://github.com/OperationCode/resources_api/pull/266#discussion_r363545482 -
We were never able to implement
test_false_validationdue to problems mocking the correct function. I'm not sure if it was our implementation or perhaps a bug in pytest-mock, but it just wasn't working for us. If you can make it work, we'd love this test to exist. See https://github.com/OperationCode/resources_api/pull/266#discussion_r363123518
@rooshs481 is going to take this one on
I think nobody is currently working on this. @aaron-suarez Can I work on this?
Go ahead @fumblehool !