Commit 4e67259d authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[cleanup] Fix some flake8 errors

parent 6ed86e0b0222
...@@ -45,20 +45,25 @@ class SSPlannerTC(BasePlannerTC): ...@@ -45,20 +45,25 @@ class SSPlannerTC(BasePlannerTC):
self.system = self.o._repo.system_source self.system = self.o._repo.system_source
def test_ordered_ambigous_sol(self): def test_ordered_ambigous_sol(self):
self._test('Any XN ORDERBY XN WHERE X name XN, X is IN (Basket, State, Folder)', self._test(
[('OneFetchStep', [('Any XN ORDERBY XN WHERE X name XN, X is IN(Basket, State, Folder)', 'Any XN ORDERBY XN WHERE X name XN, X is IN (Basket, State, Folder)',
[{'X': 'Basket', 'XN': 'String'}, [('OneFetchStep', [('Any XN ORDERBY XN WHERE X name XN, '
{'X': 'State', 'XN': 'String'}, 'X is IN(Basket, State, Folder)',
{'X': 'Folder', 'XN': 'String'}])], [{'X': 'Basket', 'XN': 'String'},
[])]) {'X': 'State', 'XN': 'String'},
{'X': 'Folder', 'XN': 'String'}])],
[])])
def test_groupeded_ambigous_sol(self): def test_groupeded_ambigous_sol(self):
self._test('Any XN,COUNT(X) GROUPBY XN WHERE X name XN, X is IN (Basket, State, Folder)', self._test(
[('OneFetchStep', [('Any XN,COUNT(X) GROUPBY XN WHERE X name XN, X is IN(Basket, State, Folder)', 'Any XN,COUNT(X) GROUPBY XN WHERE X name XN, X is IN (Basket, State, Folder)',
[{'X': 'Basket', 'XN': 'String'}, [('OneFetchStep', [('Any XN,COUNT(X) GROUPBY XN WHERE X name XN, '
{'X': 'State', 'XN': 'String'}, 'X is IN(Basket, State, Folder)',
{'X': 'Folder', 'XN': 'String'}])], [{'X': 'Basket', 'XN': 'String'},
[])]) {'X': 'State', 'XN': 'String'},
{'X': 'Folder', 'XN': 'String'}])],
[])])
if __name__ == '__main__': if __name__ == '__main__':
import unittest import unittest
......
...@@ -61,8 +61,10 @@ cubicweb/server/test/data-schema2sql/__init__.py ...@@ -61,8 +61,10 @@ cubicweb/server/test/data-schema2sql/__init__.py
cubicweb/server/test/unittest_checkintegrity.py cubicweb/server/test/unittest_checkintegrity.py
cubicweb/server/test/unittest_datafeed.py cubicweb/server/test/unittest_datafeed.py
cubicweb/server/test/unittest_ldapsource.py cubicweb/server/test/unittest_ldapsource.py
cubicweb/server/test/unittest_migractions.py
cubicweb/server/test/unittest_serverctl.py cubicweb/server/test/unittest_serverctl.py
cubicweb/server/test/unittest_session.py cubicweb/server/test/unittest_session.py
cubicweb/server/test/unittest_ssplanner.py
cubicweb/server/test/unittest_rqlannotation.py cubicweb/server/test/unittest_rqlannotation.py
cubicweb/server/test/unittest_utils.py cubicweb/server/test/unittest_utils.py
cubicweb/sobjects/notification.py cubicweb/sobjects/notification.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment