Olemis Lang avatar 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' , " \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.