22from django .test import TestCase
33
44from clickhouse_backend .models import (
5+ anyLast ,
56 uniq ,
67 uniqCombined ,
78 uniqCombined64 ,
89 uniqExact ,
910 uniqHLL12 ,
1011 uniqTheta ,
11- anyLast
1212)
1313
1414from .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