Skip to content

Commit

Permalink
fix: Clean-up unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Jun 19, 2024
1 parent f921bb5 commit dc9535f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions posthog/api/test/test_app_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dc9535f

Please sign in to comment.