Browse Source

Fixing tests according to query new behaviour

Yann Weber 8 years ago
parent
commit
afadd92b3d
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      tests/leapi/query/test_filtered.py

+ 5
- 4
tests/leapi/query/test_filtered.py View File

@@ -90,13 +90,13 @@ class LeFilteredQueryTestCase(unittest.TestCase):
90 90
     def test_rel_filters(self):
91 91
         """ Testing relational filters recognition """
92 92
         test_datas = [  (   dyncode.Subsection,
93
-                            'parent.lodel_id = 42',
93
+                            'parent.title = 42',
94 94
                             (   [],
95
-                                [(('parent', {dyncode.Section: 'lodel_id'}), '=', '42')])),
95
+                                [(('parent', {dyncode.Section: 'title'}), '=', '42')])),
96 96
                         (   dyncode.Section,
97
-                            'childs.lodel_id = 42',
97
+                            'childs.title = 42',
98 98
                             (   [],
99
-                                [(('childs', {dyncode.Subsection: 'lodel_id'}), '=', '42')]))
99
+                                [(('childs', {dyncode.Subsection: 'title'}), '=', '42')]))
100 100
                         ]
101 101
 
102 102
         for le_class, q_filter_arg, e_qfilter in test_datas:
@@ -105,6 +105,7 @@ class LeFilteredQueryTestCase(unittest.TestCase):
105 105
             self.assertEqual(   qinfos['query_filter'],
106 106
                                 e_qfilter)
107 107
 
108
+
108 109
 class LeFilteredQueryMultiDataHandlerTestCase(unittest.TestCase):
109 110
     """ Testing LeFilteredQuery behavior when relational fields implies
110 111
         different datasources """

Loading…
Cancel
Save