From 92004c960db0206c29656f4ae90ea8cd0a9cfd57 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 21 Sep 2023 18:59:25 +0100 Subject: [PATCH] english --- posthog/helpers/tests/test_session_recording_helpers.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/posthog/helpers/tests/test_session_recording_helpers.py b/posthog/helpers/tests/test_session_recording_helpers.py index ee6a3c6ccada2..f2f73a7fee15e 100644 --- a/posthog/helpers/tests/test_session_recording_helpers.py +++ b/posthog/helpers/tests/test_session_recording_helpers.py @@ -16,7 +16,6 @@ decompress_chunked_snapshot_data, get_events_summary_from_snapshot_data, is_active_event, - legacy_preprocess_session_recording_events_for_clickhouse, preprocess_replay_events_for_blob_ingestion, split_replay_events, ) @@ -37,12 +36,11 @@ def mock_capture_flow(events: List[dict], max_size_bytes=512 * 1024) -> Tuple[Li Returns the legacy events and the new flow ones """ replay_events, other_events = split_replay_events(events) - legacy_replay_events = legacy_preprocess_session_recording_events_for_clickhouse( - replay_events, chunk_size=max_size_bytes - ) + new_replay_events = preprocess_replay_events_for_blob_ingestion(replay_events, max_size_bytes=max_size_bytes) - return legacy_replay_events + other_events, new_replay_events + other_events + # TODO this should only be returning the second part of the tuple, it used to return legacy snapshot data too + return other_events, new_replay_events + other_events def test_preprocess_with_no_recordings():