103 was fixed in #150 with a sqlite change. We should add a test case to verify this. This can go alongside the existing tests in BreedModelTest.
Here's a rough sketch of how I imagine this working:
fetch the list of breeds from the network
advance time by an hour (This will require refactoring BreedModel to take a Clock instance from Koin rather than hardcoding Clock.System the way it is currently)
tell the mock API to return extra data (this will require adding a new output to KtorApiMock)
fetch the list of breeds again
verify that the extra data is present in the list returned from selectAllBreeds(), and that the original data is present but not duplicated
103 was fixed in #150 with a sqlite change. We should add a test case to verify this. This can go alongside the existing tests in
BreedModelTest
.Here's a rough sketch of how I imagine this working:
BreedModel
to take aClock
instance from Koin rather than hardcodingClock.System
the way it is currently)KtorApiMock
)selectAllBreeds()
, and that the original data is present but not duplicated