2
2
from django .test import TestCase
3
3
4
4
from clickhouse_backend .models import (
5
+ anyLast ,
5
6
uniq ,
6
7
uniqCombined ,
7
8
uniqCombined64 ,
8
9
uniqExact ,
9
10
uniqHLL12 ,
10
11
uniqTheta ,
11
- anyLast
12
12
)
13
13
14
14
from .models import WatchSeries
@@ -30,11 +30,11 @@ class AggregatesTestCase(TestCase):
30
30
]
31
31
32
32
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" },
38
38
]
39
39
40
40
@classmethod
@@ -244,7 +244,4 @@ def test_anylast(self):
244
244
.order_by ("uid" )
245
245
)
246
246
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