Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent 81fd880 commit 36e0b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cl/tests/api/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
from unittest.mock import MagicMock, patch


class TestApiUsage(unittest.TestCase):
def setUp(self):
self.start_date = '2023-01-01'
Expand All @@ -17,7 +18,7 @@ def test_recent_api_usage(self, mock_get_redis_interface):
mock_redis.pipeline.return_value = mock_pipeline

mock_pipeline.execute.return_value = [
self.v3_results] * len(self.expected_dates) +
self.v3_results] * len(self.expected_dates) +
[self.v4_results] * len(self.expected_dates)

results = get_recent_api_usage(self.start_date, self.end_date)
Expand Down

0 comments on commit 36e0b3e

Please sign in to comment.