From 908d07a857110531ae29b70f48efc3f3f4b8c675 Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Fri, 17 Nov 2023 17:39:35 +0000 Subject: [PATCH] Fix clickhouse trends EE --- ee/clickhouse/views/test/test_clickhouse_trends.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ee/clickhouse/views/test/test_clickhouse_trends.py b/ee/clickhouse/views/test/test_clickhouse_trends.py index 739279b298c8d4..455f127e2b41a2 100644 --- a/ee/clickhouse/views/test/test_clickhouse_trends.py +++ b/ee/clickhouse/views/test/test_clickhouse_trends.py @@ -827,9 +827,7 @@ def test_insight_trends_cumulative(self): ], ) data_response = get_trends_time_series_ok(self.client, request, self.team) - person_response = get_people_from_url_ok( - self.client, data_response["$pageview - val"]["2012-01-14"].person_url - ) + person_response = get_people_from_url_ok(self.client, data_response["val"]["2012-01-14"].person_url) assert data_response["val"]["2012-01-13"].value == 1 assert data_response["val"]["2012-01-13"].breakdown_value == "val" @@ -894,7 +892,7 @@ def test_insight_trends_cumulative(self): ], ) data_response = get_trends_time_series_ok(self.client, request, self.team) - people = get_people_from_url_ok(self.client, data_response["$pageview - val"]["2012-01-14"].person_url) + people = get_people_from_url_ok(self.client, data_response["val"]["2012-01-14"].person_url) assert data_response["val"]["2012-01-13"].value == 1 assert data_response["val"]["2012-01-13"].breakdown_value == "val" @@ -937,8 +935,8 @@ def test_breakdown_with_filter(self): self.client, data_response["sign up - val"]["2012-01-13"].person_url ) - assert data_response["sign up - val"]["2012-01-13"].value == 1 - assert data_response["sign up - val"]["2012-01-13"].breakdown_value == "val" + assert data_response["val"]["2012-01-13"].value == 1 + assert data_response["val"]["2012-01-13"].breakdown_value == "val" assert sorted([p["id"] for p in person_response]) == sorted([str(created_people["person1"].uuid)])