Skip to content

Commit

Permalink
Separate test case for invalid group by name
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Oct 12, 2023
1 parent 56332d1 commit 61d23c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metricflow/test/query/test_query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ def test_query_parser_case_insensitivity(bookings_query_parser: MetricFlowQueryP
),
)


def test_query_parser_invalid_group_by(bookings_query_parser: MetricFlowQueryParser) -> None: # noqa: D
with pytest.raises(UnableToSatisfyQueryError):
bookings_query_parser.parse_and_validate_query(group_by_names=["random_stuff"])

Expand Down

0 comments on commit 61d23c6

Please sign in to comment.