Exemplo n.º 1
0
def test_write_hpp_file():

    convert.write_hpp_file('fun_db', 'tests/schema1.sql',
                           'templates/template.hpp')
    with open('schema.hpp', 'r') as schema:
        with open('tests/schemaTest.hpp', 'r') as test:
            assert_equals(schema.readlines(), test.readlines())
Exemplo n.º 2
0
def execute(sql_schema_file, target):
    convert.write_hpp_file(sql_schema_file, target)
Exemplo n.º 3
0
def test_write_hpp_file():

    convert.write_hpp_file('fun_db', 'tests/schema1.sql', 'templates/template.hpp')
    with open('schema.hpp', 'r') as schema:
        with open('tests/schemaTest.hpp', 'r') as test:
            assert_equals(schema.readlines(), test.readlines())
Exemplo n.º 4
0
def execute(sql_schema_file, target):
    convert.write_hpp_file(sql_schema_file, target)