Exemplo n.º 1
0
 def test_make_datetime_column():
     sql_col = make_sqlalchemy_column([
         datetime(2014, 1, 1, 1, 1, 1, 1),
         datetime(2014, 1, 1, 1, 1, 1, 2)
     ], 'name')
     expect = Column('name', DateTime(), nullable=False)
     eq_(str(expect.type), str(sql_col.type))
Exemplo n.º 2
0
 def test_make_date_column():
     sql_col = make_sqlalchemy_column([date(2014, 1, 1),
                                       date(2014, 1, 2)],
                                      'name')
     expect = Column('name', Date(), nullable=False)
     eq_(str(expect.type), str(sql_col.type))