Skip to content

Commit

Permalink
Update test_clickhouse_funnel_correlation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Oct 26, 2023
1 parent 4127132 commit 6e1c27c
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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": [
Expand All @@ -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,
Expand Down

0 comments on commit 6e1c27c

Please sign in to comment.