Browse Source

[#11] Suppression de tests inutiles dans test_field

Roland Haroutiounian 9 years ago
parent
commit
1ab80e9b1c
1 changed files with 0 additions and 29 deletions
  1. 0
    29
      EditorialModel/test/test_field.py

+ 0
- 29
EditorialModel/test/test_field.py View File

@@ -55,35 +55,6 @@ class FieldTestCase(TestCase):
55 55
         self.testFieldgroup = EmFieldGroup.create('fieldgrp1',self.testClass)
56 56
         self.testType = EmType.create('testtype1',self.testClass)
57 57
 
58
-
59
-    ## Get_Field_Type_Record (Function)
60
-    #
61
-    # Returns associations between field and type from the em_field_type table
62
-    #
63
-    # @param field EmField: Field object
64
-    # @param type EmType: Type object
65
-    # @return list of found associations
66
-    def get_field_type_record(self, field, type):
67
-        return self._get_field_type_record_Db(field, type)
68
-
69
-    ## _Get_Field_Type_Record_Db (Function)
70
-    #
71
-    # Queries the database to get the record from the em_field_type table corresponding to a given field and type
72
-    # @param field EmField: Field object
73
-    # @param type EmType: Type object
74
-    # @return found associations
75
-    def _get_field_type_record_Db(self, field, type):
76
-        sqlwrapper = SqlWrapper(read_db='default', write_db='default', alchemy_logs=False)
77
-        sql_builder = SqlQueryBuilder(sql_wrapper, 'em_field_type')
78
-        sql_builder.Select().From('em_field_type').Where('em_field_type.field_id=%s' % field.uid).Where('em_field_type.type_id=%s' % type.uid)
79
-        records = sql_builder.Execute().fetchall()
80
-        field_type_records = []
81
-        for record in records:
82
-            field_type_records.append(dict(zip(record.keys(),record)))
83
-
84
-        return field_type_records
85
-
86
-
87 58
     ## Get_Field_Records (Function)
88 59
     #
89 60
     # Returns the list of fields corresponding to a given uid

Loading…
Cancel
Save