コード例 #1
0
ファイル: fixtures.py プロジェクト: roosemberth/qutebrowser
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()
コード例 #2
0
ファイル: fixtures.py プロジェクト: fiete201/qutebrowser
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()