Esempio n. 1
0
def test_schema_create_table():
    schema = Schema.import_from_json(_schema_data)
    table = schema.create_table('default')

    assert isinstance(table.name, schema.name)
    assert isinstance(table.size, schema.size)
    assert isinstance(table.target, schema.target)
Esempio n. 2
0
def test_schema_import_json():
    schema = Schema.import_from_json(_schema_data)

    assert isinstance(schema.name, Simple)
    assert isinstance(schema.size, FloatRange)
    assert isinstance(schema.target, FormattedString)