From 6e1c27c337ad693ac862ea83c80510722551ce26 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 26 Oct 2023 13:57:38 +0200 Subject: [PATCH] Update test_clickhouse_funnel_correlation.py --- .../funnel/test_clickhouse_funnel_correlation.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ee/clickhouse/views/test/funnel/test_clickhouse_funnel_correlation.py b/ee/clickhouse/views/test/funnel/test_clickhouse_funnel_correlation.py index fcc51e7c7f7fb..829232d1bd94f 100644 --- a/ee/clickhouse/views/test/funnel/test_clickhouse_funnel_correlation.py +++ b/ee/clickhouse/views/test/funnel/test_clickhouse_funnel_correlation.py @@ -17,7 +17,7 @@ from posthog.models.element import Element from posthog.models.team import Team from posthog.test.base import BaseTest, _create_event, _create_person -from posthog.test.test_journeys import journeys_for, update_or_create_person +from posthog.test.test_journeys import journeys_for @pytest.mark.clickhouse_only @@ -506,16 +506,21 @@ def test_properties_correlation_endpoint_provides_people_drill_down_urls(self): with freeze_time("2020-01-01"): self.client.force_login(self.user) - update_or_create_person( + _create_person( distinct_ids=["Person 1"], team_id=self.team.pk, properties={"$browser": "1"}, ) - update_or_create_person( + _create_person( distinct_ids=["Person 2"], team_id=self.team.pk, properties={"$browser": "1"}, ) + _create_person( + distinct_ids=["Person 3"], + team_id=self.team.pk, + properties={}, + ) events = { "Person 1": [ @@ -534,7 +539,7 @@ def test_properties_correlation_endpoint_provides_people_drill_down_urls(self): ], } - journeys_for(events_by_person=events, team=self.team) + journeys_for(events_by_person=events, team=self.team, create_people=False) odds = get_funnel_correlation_ok( client=self.client,