Exemplo n.º 1
0
 def test_type_is_always_array(self):
     f = ArrayField()
     setattr(f, '_type', 'int')
     self.assertIn('[]', f.db_type(None))
 def test_type_is_always_array(self):
     f = ArrayField()
     setattr(f, '_type', 'int')
     self.assertIn('[]', f.db_type(None))
Exemplo n.º 3
0
 def test_respects_type_of_class(self):
     custom_type = 'int'
     f = ArrayField()
     setattr(f, '_type', custom_type)
     self.assertIn(custom_type, f.db_type(None))
 def test_respects_type_of_class(self):
     custom_type = 'int'
     f = ArrayField()
     setattr(f, '_type', custom_type)
     self.assertIn(custom_type, f.db_type(None))