def init_sql(data_tmpdir): """Initialize the SQL module, and shut it down after the test.""" path = str(data_tmpdir / 'test.db') sql.init(path) yield sql.close()
def init_sql(data_tmpdir): """Initialize the SQL module, and shut it down after the test.""" path = str(data_tmpdir / 'test.db') sql.init(path) yield sql.close()