示例#1
0
 def test_distinct_by_method_with_param(self):
     self.assertEqual(str(Sum('col').distinct(False)), 'SUM("col")')
示例#2
0
 def test_distinct(self):
     self.assertEqual(str(Sum('col', True)), 'SUM(DISTINCT "col")')
示例#3
0
 def test_distinct_by_method(self):
     self.assertEqual(str(Sum('col').distinct()), 'SUM(DISTINCT "col")')
示例#4
0
 def test_normal(self):
     self.assertEqual(str(Sum('col')), 'SUM("col")')
示例#5
0
 def test_distinct_by_method_with_param(self):
     assert str(Sum('col').distinct(False)) == 'SUM("col")'
示例#6
0
 def test_distinct_by_method(self):
     assert str(Sum('col').distinct()) == 'SUM(DISTINCT "col")'
示例#7
0
 def test_distinct(self):
     assert str(Sum('col', True)) == 'SUM(DISTINCT "col")'
示例#8
0
 def test_normal(self):
     assert str(Sum('col')) == 'SUM("col")'