from db import create_instrument, get_db_connection connection = get_db_connection() with open('schema.sql') as f: connection.executescript(f.read()) create_instrument('Test Instrument', 'test_instrument', 'The classic original the one we like to test', ['eye','back'], ['feet','faat', 'foot', 'nose'] ) connection.commit() connection.close()