Skip to content

Commit

Permalink
Update MetricInputMeasure parsing test to check null value coalesci…
Browse files Browse the repository at this point in the history
…ng options
  • Loading branch information
QMalcolm committed Sep 27, 2023
1 parent 744d37b commit ee14a0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/parsing/test_metric_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def test_legacy_metric_input_measure_object_parsing() -> None:
measure:
name: legacy_measure_from_object
filter: "{{ dimension('some_bool') }}"
join_to_timespine: true
fill_nulls_with: 1
"""
)
file = YamlConfigFile(filepath="inline_for_test", contents=yaml_contents)
Expand All @@ -65,6 +67,8 @@ def test_legacy_metric_input_measure_object_parsing() -> None:
assert metric.type_params.measure == PydanticMetricInputMeasure(
name="legacy_measure_from_object",
filter=PydanticWhereFilter(where_sql_template="""{{ dimension('some_bool') }}"""),
join_to_timespine=True,
fill_nulls_with=1,
)


Expand Down

0 comments on commit ee14a0c

Please sign in to comment.