Browse Source

Merge branches 'newlodel' and 'newlodel' of git.labocleo.org:lodel2 into newlodel

m.orban 8 years ago
parent
commit
192c3e9027
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      plugins/dummy_datasource/datasource.py
  2. 2
    2
      tests/datahandlers/test_boolean.py

+ 1
- 1
plugins/dummy_datasource/datasource.py View File

@@ -24,7 +24,7 @@ class DummyDatasource(object):
24 24
     #@param offset int: used with limit to choose the start record
25 25
     #@param instanciate bool : If true, the records are returned as instances, else they are returned as dict
26 26
     #@return list
27
-    def select(self, target_cls, field_list, filters, rel_filters=None, order=None, group=None, limit=None, offset=0,
27
+    def select(self, target, field_list, filters, rel_filters=None, order=None, group=None, limit=None, offset=0,
28 28
                instanciate=True):
29 29
         pass
30 30
 

+ 2
- 2
tests/datahandlers/test_boolean.py View File

@@ -10,12 +10,12 @@ class BooleanTestCase(unittest.TestCase):
10 10
 
11 11
         # correct values
12 12
         for test_value in [True, False]:
13
-            value, error = test_boolean.check_data_value(test_value)
13
+            _, error = test_boolean.check_data_value(test_value)
14 14
             self.assertIsNone(error)
15 15
 
16 16
         # incorrect values
17 17
         for test_value in ['ok', 'True', 'False']:
18
-            value, error = test_boolean.check_data_value(test_value)
18
+            _, error = test_boolean.check_data_value(test_value)
19 19
             self.assertIsNotNone(error)
20 20
 
21 21
     def test_can_override(self):

Loading…
Cancel
Save