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