Skip to content

Commit

Permalink
Update test_fetch_from_cache.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed May 23, 2024
1 parent 483d786 commit 1a8dffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions posthog/caching/test/test_fetch_from_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from posthog.utils import get_safe_cache


@override_settings(
HOGQL_INSIGHTS_OVERRIDE=False # fetch_cached_insight_result and synchronously_update_cache are legacy-only code paths
)
@freeze_time("2012-01-14T03:21:34.000Z")
class TestFetchFromCache(ClickhouseTestMixin, BaseTest):
def setUp(self):
Expand Down Expand Up @@ -91,9 +94,6 @@ def test_synchronously_update_cache_dashboard_tile(self):
"next_allowed_client_refresh": None,
}

@override_settings(
HOGQL_INSIGHTS_OVERRIDE=False # synchronously_update_cache and fetch_cached_insight_result are legacy-only code paths
)
def test_fetch_cached_insight_result_from_cache_legacy(self):
cached_result = synchronously_update_cache(self.insight, self.dashboard, timedelta(minutes=3))
from_cache_result = fetch_cached_insight_result(self.dashboard_tile, timedelta(minutes=3))
Expand Down

0 comments on commit 1a8dffd

Please sign in to comment.