Skip to content

Commit

Permalink
Update test_funnel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Sep 5, 2024
1 parent 026ebd0 commit 464e042
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions posthog/hogql_queries/insights/funnels/test/test_funnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4092,41 +4092,6 @@ def test_first_time_for_user_funnel_multiple_ids(self):
self.assertEqual(results[0]["count"], 3)
self.assertEqual(results[1]["count"], 1)

def test_data_warehouse_step(self):
_create_person(
distinct_ids=[f"user_1"],
team=self.team,
)

events_by_person = {
"user_1": [
{
"event": "$pageview",
"timestamp": datetime(2024, 3, 22, 13, 46),
},
{
"event": "$pageview",
"timestamp": datetime(2024, 3, 22, 13, 47),
},
],
}
journeys_for(events_by_person, self.team)

query = FunnelsQuery(
series=[
EventsNode(event="$pageview"),
EventsNode(event="$pageview", math=BaseMathType.DATA_WAREHOUSE),
],
dateRange=InsightDateRange(
date_from="2024-03-22",
date_to="2024-03-22",
),
)
results = FunnelsQueryRunner(query=query, team=self.team).calculate().results

self.assertEqual(results[0]["count"], 1)
self.assertEqual(results[1]["count"], 1)

return TestGetFunnel


Expand Down

0 comments on commit 464e042

Please sign in to comment.