Closed rmartz closed 7 years ago
Tests should be using the dummy cache, which does nothing.
Perhaps related to #311, caused by an apparent timing issue with tests being started with non-test settings. Possibly due to the use of factory_boy
for mocks.
While working with the API, I noticed something odd: My
/api/scenario/
endpoint was reporting incomplete data:Which is weird because the scenarios definitely exist:
So I restarted the server, tried again, and all was well - I was getting back all three scenarios, with their labels and descriptions populated. Except now, I'm getting a unit test error:
It appears that the unit test and API are competing with each other for ownership of the cache.
This also definitely happens with the
/api/climate-model/
endpoint, and may happen with other endpoints as well.