haiku.rag/tests/multi_db
Yiorgis Gozadinos b6bc54c69e
Answer for an unknown database name with one type
A name nothing covers raised `KeyError` in four places and
`AmbiguousDatabaseError` in a fifth, so a caller had to catch both and neither
name said what happened. `UnknownDatabaseError` is all of them, exported from
`haiku.rag.store` beside the other errors.

It subclasses `KeyError`, since selecting by name is a lookup, and prints its
message plainly rather than quoted as a missing key. Both CLIs turn it into the
same clean exit they already gave the others.
2026-08-27 18:04:27 +03:00
..
__init__.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
conftest.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
helpers.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
test_capabilities.py Answer for an unknown database name with one type 2026-08-27 18:04:27 +03:00
test_citations.py Say what makes a cited chunk id ambiguous 2026-08-27 14:09:01 +03:00
test_documents.py Rename the database selector to --db-name 2026-08-26 16:48:27 +03:00
test_expansion.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
test_lifecycle.py Give every client shape a way to be released 2026-08-27 18:04:27 +03:00
test_scope.py Answer for an unknown database name with one type 2026-08-27 18:04:27 +03:00
test_search.py Answer for an unknown database name with one type 2026-08-27 18:04:27 +03:00