Skip to content

Commit e12b54b

Browse files
committed
Make linter happy once more
1 parent fe1de49 commit e12b54b

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

dissect/database/sqlite3/wal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def page_count(self) -> int:
145145

146146
class _FrameCollection:
147147
"""Convenience class to keep track of a collection of frames that were committed together."""
148+
148149
def __init__(self, wal: WAL, frames: list[Frame]):
149150
self.wal = wal
150151
self.frames = frames

tests/_tools/sqlite3/__init__.py

Whitespace-only changes.

tests/sqlite3/test_sqlite3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
if TYPE_CHECKING:
1111
from pathlib import Path
1212

13+
1314
@pytest.mark.parametrize(
1415
("db_as_path"),
1516
[pytest.param(True, id="db_as_path"), pytest.param(False, id="db_as_fh")],

tests/sqlite3/test_wal.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
if TYPE_CHECKING:
1010
from pathlib import Path
1111

12+
1213
@pytest.mark.parametrize(
1314
("db_as_path"),
1415
[pytest.param(True, id="db_as_path"), pytest.param(False, id="db_as_fh")],
@@ -18,13 +19,25 @@
1819
[pytest.param(True, id="wal_as_path"), pytest.param(False, id="wal_as_fh")],
1920
)
2021
def test_sqlite_wal(sqlite_db: Path, sqlite_wal: Path, db_as_path: bool, wal_as_path: bool) -> None:
21-
db = sqlite3.SQLite3(sqlite_db if db_as_path else sqlite_db.open("rb"), sqlite_wal if wal_as_path else sqlite_wal.open("rb"), checkpoint=1)
22+
db = sqlite3.SQLite3(
23+
sqlite_db if db_as_path else sqlite_db.open("rb"),
24+
sqlite_wal if wal_as_path else sqlite_wal.open("rb"),
25+
checkpoint=1,
26+
)
2227
_assert_checkpoint_1(db)
2328

24-
db = sqlite3.SQLite3(sqlite_db if db_as_path else sqlite_db.open("rb"), sqlite_wal if wal_as_path else sqlite_wal.open("rb"), checkpoint=2)
29+
db = sqlite3.SQLite3(
30+
sqlite_db if db_as_path else sqlite_db.open("rb"),
31+
sqlite_wal if wal_as_path else sqlite_wal.open("rb"),
32+
checkpoint=2,
33+
)
2534
_assert_checkpoint_2(db)
2635

27-
db = sqlite3.SQLite3(sqlite_db if db_as_path else sqlite_db.open("rb"), sqlite_wal if wal_as_path else sqlite_wal.open("rb"), checkpoint=3)
36+
db = sqlite3.SQLite3(
37+
sqlite_db if db_as_path else sqlite_db.open("rb"),
38+
sqlite_wal if wal_as_path else sqlite_wal.open("rb"),
39+
checkpoint=3,
40+
)
2841
_assert_checkpoint_3(db)
2942

3043

0 commit comments

Comments
 (0)