Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Apr 17, 2024
1 parent 9bbdf27 commit 41fe3dd
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,32 @@ def test_insight_persons_funnels_query(self):
)

self.assertEqual([("p1",), ("p2",)], response.results)

def test_insight_groups_funnels_query(self):
self._create_test_groups()
self._create_test_events()
self.team.timezone = "US/Pacific"
self.team.save()

response = self.select(
"""
select * from (
<ActorsQuery select={['properties.name']}>
<FunnelsActorsQuery funnelStep={2}>
<FunnelsQuery
aggregation_group_type_index={0}
dateRange={<DateRange date_from='2020-01-01' date_to='2020-01-19' />}
series={[<EventsNode event='$pageview' />, <EventsNode event='$pageview' />]}
/>
</FunnelsActorsQuery>
</ActorsQuery>
)
"""
)

self.assertEqual(
[
("org1",),
],
response.results,
)

0 comments on commit 41fe3dd

Please sign in to comment.