Commits

Olemis Lang committed ed8a05c

GViz QL : Add 'sort' attribute in GVizOrderByClause

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

Comments (0)

Files changed (1)

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

       *****
       * Parsing
       *****
-      NotSupported  :(
+      [(u'dept', True)]
+      [u'dept']
+      [u'dept', u'lunchTime']
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
       """,
   'Parsing ORDER BY (complex)' : r"""
       >>> parse("  select dept , max(salary)   group by dept "
       *****
       * Parsing
       *****
-      NotSupported  :(
+      [(u'max(salary)', True)]
+      [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 dept , min(lunchTime)   group by dept "
       ...       "   order by max(salary)", 'sort', 'aggregate', 'cols')
       *****
       * Parsing
       *****
-      NotSupported  :(
+      [(u'max(salary)', True)]
+      [u'dept']
+      [u'dept', u'min(lunchTime)']
+      *****
+      * Result
+      *****
+      GVizUnsupportedQueryOp  :  Unable to evaluate GROUP BY clause. Either the whole clause or an specific feature is not supported yet.
+
       """,
   'Parsing LIMIT' : r"""
       >>> parse("limit 4", 'cnt')
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.