Skip to content

Commit

Permalink
Fix clickhouse trends EE
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 17, 2023
1 parent 2c6ba31 commit 908d07a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ee/clickhouse/views/test/test_clickhouse_trends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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)])

Expand Down

0 comments on commit 908d07a

Please sign in to comment.