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())
def execute(sql_schema_file, target): convert.write_hpp_file(sql_schema_file, target)