Skip to content

Commit

Permalink
Update test_insight_cache.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed May 23, 2024
1 parent 1a8dffd commit ee7e7c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/caching/test/test_insight_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from collections.abc import Callable
from unittest.mock import call, patch

from django.test import override_settings
import pytest
from django.utils.timezone import now
from freezegun import freeze_time
Expand Down Expand Up @@ -40,7 +41,10 @@ def create_insight_caching_state(
**kw,
):
with mute_selected_signals():
insight = create_insight(team, user, filters=filters)
with override_settings(HOGQL_INSIGHTS_OVERRIDE=False):
# HogQL-based insights handle caching fully inside query runners,
# so the tests in this file only pertain to the legacy engine
insight = create_insight(team, user, filters=filters)

upsert(team, insight)

Expand Down

0 comments on commit ee7e7c0

Please sign in to comment.