aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/src/lib/db.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 15:33:27 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 15:33:27 +0200
commitb1d66075b13c40606bb2d0bd8f90275b8f2e8abb (patch)
tree95d5a5ef6b9e452fae3932699834930f1895cee9 /test/src/lib/db.py
parentworkflows/ci: add Python linting (diff)
downloadcimple-b1d66075b13c40606bb2d0bd8f90275b8f2e8abb.tar.gz
cimple-b1d66075b13c40606bb2d0bd8f90275b8f2e8abb.zip
workflows/ci: use default Black settings
Diffstat (limited to 'test/src/lib/db.py')
-rw-r--r--test/src/lib/db.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/lib/db.py b/test/src/lib/db.py
index de6960a..0e47901 100644
--- a/test/src/lib/db.py
+++ b/test/src/lib/db.py
@@ -10,8 +10,8 @@ import sqlite3
class Database:
def __init__(self, path):
- logging.info('Opening SQLite database: %s', path)
- self.conn = sqlite3.connect(f'file:{path}?mode=ro', uri=True)
+ logging.info("Opening SQLite database: %s", path)
+ self.conn = sqlite3.connect(f"file:{path}?mode=ro", uri=True)
def __enter__(self):
return self
@@ -26,5 +26,5 @@ class Database:
def get_all_runs(self):
with self.get_cursor() as cur:
- cur.execute('SELECT * FROM cimple_runs_view')
+ cur.execute("SELECT * FROM cimple_runs_view")
return cur.fetchall()