Commits

Olemis Lang committed 0a24e95

GViz QL : Rewrite some tests for GROUP BY , LIMIT and OFFSET.

gvizql.py Total tests : 62 , Failures : 5 , Errors : 9

Comments (0)

Files changed (1)

trac-dev/gviz/tracgviz/testing/test_gvizql.py

       *****
       * Parsing
       *****
-      NotSupported  :(
+      [u'dept']
+      [u'dept']
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
 
       >>> parse("select dept, max(salary) group by   dept   ", \
       ...           'aggregate', 'cols')
       *****
       * Parsing
       *****
-      NotSupported  :(
+      [u'dept']
+      [u'dept', u'max(salary)']
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
 
       >>> parse("select lunchTime, avg(salary), count(age) " \
       ...       "group by    isSenior,lunchTime", \
       *****
       * Parsing
       *****
-      NotSupported  :(
+      [u'isSenior', u'lunchTime']
+      [u'lunchTime', u'avg(salary)', u'count(age)']
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
       """,
   'Parsing GROUP BY (complex)' : r"""
       """,
       *****
       * Parsing
       *****
-      NotSupported  :(
+      100
+      [u'dept', u'lunchTime']
+      [u'dept']
+      [(u'dept', True)]
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
       """,
   'Parsing OFFSET' : r"""
       >>> parse("offset 2", 'skip')
       *****
       * Parsing
       *****
-      NotSupported  :(
+      100
+      [u'dept', u'lunchTime']
+      [u'dept']
+      25
+      [(u'dept', True)]
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
       """,
   'Parsing LABEL' : r"""
       >>> parse("select name label    dept 'Department' , " \