Add fixtures for SqliteKVStore, DiskDistributionRegistry and CachedDiskDistributionRegistry. And use them in tests that had all been duplicating similar setups. ## Test Plan unit tests continue to run Signed-off-by: Derek Higgins <derekh@redhat.com>
# What does this PR do? Adds some unit tests for the routing logic ## Test Plan Overall unit test coverage goes from TOTAL 12434 8030 35% to TOTAL 12434 7871 37% Better coverage on router.py, before: ``` llama_stack/distribution/routers/routers.py | 342 | 219 | 0 | 36% llama_stack/distribution/routers/routing_tables.py | 346 | 236 | 0 | 32% ``` After: ``` llama_stack/distribution/routers/routers.py | 342 | 219 | 0 | 36% llama_stack/distribution/routers/routing_tables.py | 349 | 89 | 0 | 74% ``` Signed-off-by: Derek Higgins <derekh@redhat.com>