Esempio 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())
Esempio n. 2
0
def execute(sql_schema_file, target):
    convert.write_hpp_file(sql_schema_file, target)
Esempio 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())
Esempio n. 4
0
def execute(sql_schema_file, target):
    convert.write_hpp_file(sql_schema_file, target)