From dc9535f7c76989f9bd09c6d3083c26eb6f96bc7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Tue, 18 Jun 2024 17:38:15 +0200 Subject: [PATCH] fix: Clean-up unused function --- posthog/api/test/test_app_metrics.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/posthog/api/test/test_app_metrics.py b/posthog/api/test/test_app_metrics.py index a5b630875bc37..c639b37aee68d 100644 --- a/posthog/api/test/test_app_metrics.py +++ b/posthog/api/test/test_app_metrics.py @@ -145,9 +145,6 @@ def test_retrieve_batch_export_runs_app_metrics(self): data_interval_start=last_updated_at - dt.timedelta(hours=3), status=BatchExportRun.Status.FAILED_RETRYABLE, ) - for _ in range(5): - timestamp = last_updated_at - dt.timedelta(hours=2, minutes=1) - insert_event(team_id=self.team.pk, timestamp=timestamp) response = self.client.get(f"/api/projects/@current/app_metrics/{batch_export_id}?date_from=-7d") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -216,7 +213,6 @@ def test_retrieve_batch_export_runs_app_metrics_defaults_to_zero(self): data_interval_start=last_updated_at - dt.timedelta(hours=1), status=BatchExportRun.Status.COMPLETED, ) - insert_event(team_id=self.team.pk, timestamp=last_updated_at - dt.timedelta(minutes=1)) response = self.client.get(f"/api/projects/@current/app_metrics/{batch_export_id}?date_from=-7d") self.assertEqual(response.status_code, status.HTTP_200_OK)