コード例 #1
0
ファイル: test_table.py プロジェクト: pep8speaks/dave
def test_clone(s, c, v):
    table1 = Table(s)
    table1.add_columns([c])
    table1.columns[c].add_value(v)
    schema1 = table1.get_schema()
    table2 = table1.clone()
    schema2 = table2.get_schema()
    assert schema1 == schema2
コード例 #2
0
ファイル: test_table.py プロジェクト: StingraySoftware/dave
def test_clone(s, c, v, e):
    table1 = Table(s)
    table1.add_columns([c])
    table1.columns[c].add_value(v, e)
    schema1 = table1.get_schema()
    table2 = table1.clone()
    schema2 = table2.get_schema()
    assert schema1 == schema2
コード例 #3
0
ファイル: test_table.py プロジェクト: pep8speaks/dave
def test_get_shema(s, c, v):
    table = Table(s)
    table.add_columns([c])
    table.columns[c].add_value(v)
    schema = table.get_schema()

    assert c in schema and schema[c]["id"] == c and "count" in schema[
        c] and schema[c]["count"] == 1