Skip to content

Commit 770eea8

Browse files
amin-basirijayvynl
authored andcommitted
feat(aggragation-function): add anyLast function
- lint
1 parent dae8c1e commit 770eea8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/aggregates/tests.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
from django.test import TestCase
33

44
from clickhouse_backend.models import (
5+
anyLast,
56
uniq,
67
uniqCombined,
78
uniqCombined64,
89
uniqExact,
910
uniqHLL12,
1011
uniqTheta,
11-
anyLast
1212
)
1313

1414
from .models import WatchSeries
@@ -30,11 +30,11 @@ class AggregatesTestCase(TestCase):
3030
]
3131

3232
expected_result_any_last = [
33-
{'uid': 'alice', 'user_last_watched_show': 'Game of Thrones'},
34-
{'uid': 'bob', 'user_last_watched_show': 'Bridgerton'},
35-
{'uid': 'carol', 'user_last_watched_show': 'Bridgerton'},
36-
{'uid': 'dan', 'user_last_watched_show': 'Bridgerton'},
37-
{'uid': 'erin', 'user_last_watched_show': 'Game of Thrones'},
33+
{"uid": "alice", "user_last_watched_show": "Game of Thrones"},
34+
{"uid": "bob", "user_last_watched_show": "Bridgerton"},
35+
{"uid": "carol", "user_last_watched_show": "Bridgerton"},
36+
{"uid": "dan", "user_last_watched_show": "Bridgerton"},
37+
{"uid": "erin", "user_last_watched_show": "Game of Thrones"},
3838
]
3939

4040
@classmethod
@@ -244,7 +244,4 @@ def test_anylast(self):
244244
.order_by("uid")
245245
)
246246

247-
self.assertQuerysetEqual(
248-
result, self.expected_result_any_last, transform=dict
249-
)
250-
247+
self.assertQuerysetEqual(result, self.expected_result_any_last, transform=dict)

0 commit comments

Comments
 (0)