Skip to content

Commit

Permalink
Assert in test that semantic model partial parsing doesn't clobber re…
Browse files Browse the repository at this point in the history
…gular metrics
  • Loading branch information
QMalcolm committed Aug 4, 2023
1 parent f821b1c commit d97ffe9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ def test_semantic_model_flipping_create_metric_partial_parsing(self, project):
# Verify the metric originally created by `create_metric: true` was removed
assert result.result.metrics.get(generated_metric) is None

# Verify that partial parsing didn't clobber the normal metric
assert result.result.metrics.get("metric.test.simple_metric") is not None

# --- Now bring it back ---
create_metric_schema_yml = schema_yml.replace(
"create_metric: false", "create_metric: true"
Expand Down

0 comments on commit d97ffe9

Please sign in to comment.