From b59b4f8aa0d1dbded840bb735bc10fdd209bf5f4 Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Sun, 22 Dec 2024 00:13:35 +0000 Subject: [PATCH] Fix tests --- .../hogql/database/schema/test/test_sessions_v2.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/posthog/hogql/database/schema/test/test_sessions_v2.py b/posthog/hogql/database/schema/test/test_sessions_v2.py index bc18354441130..f59d0075352bd 100644 --- a/posthog/hogql/database/schema/test/test_sessions_v2.py +++ b/posthog/hogql/database/schema/test/test_sessions_v2.py @@ -27,7 +27,7 @@ def __execute(self, query, bounce_rate_mode=BounceRatePageViewMode.COUNT_PAGEVIE modifiers = HogQLQueryModifiers( sessionTableVersion=SessionTableVersion.V2, bounceRatePageViewMode=bounce_rate_mode, - bounce_rate_duration=bounce_rate_duration, + bounceRateDurationSeconds=bounce_rate_duration, ) return execute_hogql_query( query=query, @@ -549,9 +549,9 @@ def test_custom_bounce_rate_duration(self, bounce_rate_mode): ), bounce_rate_mode=bounce_rate_mode, ) - ) == [(0, s)] + ).results == [(0, s)] - # with a custom 10 second duration this should be a bounce + # with a custom 10 second duration this should not be a bounce assert ( self.__execute( parse_select( @@ -560,7 +560,7 @@ def test_custom_bounce_rate_duration(self, bounce_rate_mode): bounce_rate_mode=bounce_rate_mode, bounce_rate_duration=10, ) - ) == [(1, s)] + ).results == [(0, s)] # with a custom 30 second duration this should be a bounce assert ( @@ -569,9 +569,9 @@ def test_custom_bounce_rate_duration(self, bounce_rate_mode): "select $is_bounce, session_id from sessions ORDER BY session_id", ), bounce_rate_mode=bounce_rate_mode, - bounce_rate_duration=60, + bounce_rate_duration=30, ) - ) == [(1, s)] + ).results == [(1, s)] def test_last_external_click_url(self): s1 = str(uuid7())