Commit 6a14aa2
committed
docs+test: soften module docstring; add fixture-scope sanity assert (#105 PR 2a)
Two small cleanups; no behavior change.
(1) src/bigquery_agent_analytics/binding_validation.py: module
docstring previously read like a PR-review note (told callers not
to import a graph_validation module that does not exist yet).
Replaced with a public-doc-shaped sentence that just describes the
relationship to #76's planned extracted-graph validator.
(2) tests/test_integration_ontology_binding.py: the live test
TestBindingValidationLive depends on two function-scope fixtures
(isolated_scratch and isolated_ontology_and_binding), and the
second's binding YAML embeds the first's dataset id. If either
fixture is later flipped to module scope by accident, the binding
would point at a stale dataset. New assertion
binding.target.dataset == ds_id catches that drift before any BQ
call runs.
Live test still PASSES against test-project-0728-467323 (13.24s).1 parent 6ececb1 commit 6a14aa2
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
751 | 763 | | |
752 | 764 | | |
753 | 765 | | |
| |||
0 commit comments