def test_as_columns_mixed(): mixed = [('id', int), 'name', Column('description', str)] assert as_columns(mixed) == columns_t
def test_as_columns_with_defaults(): cols = ['id', 'name', 'description'] for col in as_columns(cols): assert col.python_type == str
def test_as_columns_with_columns(): assert as_columns(columns_t) == columns_t
def test_as_columns_using_tuples(): cols = [('id', int), ('name', str), ('description', str)] assert as_columns(cols) == columns_t