ktx/python/ktx-sl/tests
Andrey Avtomonov f561bfa850 refactor(sl): split overlay columns from column_overrides and enforce TS/Python wire contract
Overlay sources now have two distinct collections: `columns:` for computed
columns (requiring `expr` + `type`) and `column_overrides:` for metadata
patches to inherited manifest columns. Composing or loading an overlay that
mixes the two — or references an unknown column — fails with a typed error.

Introduce `ResolvedSemanticLayerSource` / `resolvedSourceSchema` /
`toResolvedWire` as the strict shape sent to the Python engine, and add a
schema contract test that diffs Zod against the Pydantic JSON schema dumped
by `python -m semantic_layer dump-schema`. `SourceDefinition` is now
`extra="forbid"` on the Python side.

`loadAllSources` surfaces per-file load errors instead of swallowing them,
so validation/query paths can report manifest shard parse failures.
2026-05-15 00:36:52 +02:00
..
__init__.py rename klo to ktx 2026-05-10 23:51:24 +02:00
conftest.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_aggregate_locality.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_cli.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_computed_columns.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_corner_case_regressions.py feat(context): add warehouse verification tools (#46) 2026-05-13 13:43:23 +02:00
test_coverage_gaps.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_duplicate_check.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_engine.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_generator.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_graph.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_loader.py refactor(sl): split overlay columns from column_overrides and enforce TS/Python wire contract 2026-05-15 00:36:52 +02:00
test_manifest.py refactor(sl): split overlay columns from column_overrides and enforce TS/Python wire contract 2026-05-15 00:36:52 +02:00
test_models.py Normalize semantic layer descriptions 2026-05-11 00:31:15 -07:00
test_parser.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_planner.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_segments.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_snowflake.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_sql_join_coverage.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_table_identifier_parser.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_tpch.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_validator.py Improve schema setup and Notion ingest UX (#14) 2026-05-12 22:56:58 +02:00