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
     #@param offset int: used with limit to choose the start record
24
     #@param offset int: used with limit to choose the start record
25
     #@param instanciate bool : If true, the records are returned as instances, else they are returned as dict
25
     #@param instanciate bool : If true, the records are returned as instances, else they are returned as dict
26
     #@return list
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
                instanciate=True):
28
                instanciate=True):
29
         pass
29
         pass
30
 
30
 

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

10
 
10
 
11
         # correct values
11
         # correct values
12
         for test_value in [True, False]:
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
             self.assertIsNone(error)
14
             self.assertIsNone(error)
15
 
15
 
16
         # incorrect values
16
         # incorrect values
17
         for test_value in ['ok', 'True', 'False']:
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
             self.assertIsNotNone(error)
19
             self.assertIsNotNone(error)
20
 
20
 
21
     def test_can_override(self):
21
     def test_can_override(self):

Loading…
Cancel
Save