Commit a1a882e
authored
test: assert databricks_tags applied at create on metric views (#1529)
## Description
Strengthens the metric-view materialization test so it verifies,
server-side, that `databricks_tags` configured on a `metric_view` model
are applied **at create time**.
The existing `test_metric_view_with_tags` set `databricks_tags` but
asserted only that the `MEASURE()` query ran, so create-time tag
application was never verified — the other metric-view tests assert only
the *post-update* tags. The test now queries
`information_schema.table_tags` after the first build and asserts the
configured `team`/`environment` tags are present.
Test-only; no runtime change.
## How verified
`hatch run pytest
tests/functional/adapter/metric_views/test_metric_view_materialization.py::TestMetricViewConfiguration::test_metric_view_with_tags`
→ passed on `databricks_uc_sql_endpoint`.1 parent b182e8b commit a1a882e
1 file changed
Lines changed: 16 additions & 2 deletions
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
| |||
213 | 212 | | |
214 | 213 | | |
215 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
216 | 230 | | |
217 | 231 | | |
218 | 232 | | |
| |||
0 commit comments