Skip to content

Commit

Permalink
WIP fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andehen committed Jan 10, 2025
1 parent 8b6c254 commit 7f5c013
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ def test_query_runner_with_avg_math(self):
flush_persons_and_events()

prepared_count_query = query_runner.prepared_count_query
self.assertEqual(prepared_count_query.series[0].math, "avg")
self.assertEqual(prepared_count_query.series[0].math, "sum")

result = query_runner.calculate()
trend_result = cast(ExperimentTrendsQueryResponse, result)
Expand Down Expand Up @@ -1294,7 +1294,7 @@ def test_query_runner_with_avg_math_v2_stats(self):

count_query = TrendsQuery(
series=[
EventsNode(event="purchase", math="avg", math_property="amount", math_property_type="event_properties")
EventsNode(event="purchase", math="sum", math_property="amount", math_property_type="event_properties")
],
)
exposure_query = TrendsQuery(series=[EventsNode(event="$feature_flag_called")])
Expand Down Expand Up @@ -1364,7 +1364,7 @@ def test_query_runner_with_avg_math_v2_stats(self):
flush_persons_and_events()

prepared_count_query = query_runner.prepared_count_query
self.assertEqual(prepared_count_query.series[0].math, "avg")
self.assertEqual(prepared_count_query.series[0].math, "sum")

result = query_runner.calculate()
trend_result = cast(ExperimentTrendsQueryResponse, result)
Expand Down

0 comments on commit 7f5c013

Please sign in to comment.