Skip to content

Commit 0b629b7

Browse files
aheevadsharma
authored andcommitted
refactor db ext
1 parent f48d3e1 commit 0b629b7

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def init_movie_serial(conn: lb.Connection) -> None:
161161

162162
def get_db_file_path(tmp_path: Path) -> Path:
163163
"""Return the path to the database file."""
164-
return tmp_path / "db.lbug"
164+
return tmp_path / "db.lbdb"
165165

166166

167167
def init_db(path: Path) -> Path:

test/disabled_test_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_extension_install_httpfs(conn_db_readwrite: ConnDB, tmpdir: str, extens
4040
extension_path = (
4141
Path(userdir)
4242
.joinpath(
43-
".lbug",
43+
".lbdb",
4444
"extension",
4545
extension_version,
4646
extension_extension_dir_prefix,

test/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
def test_connection_close(tmp_path: Path) -> None:
16-
db_path = tmp_path / "test_connection_close.lbug"
16+
db_path = tmp_path / "test_connection_close.lbdb"
1717
db = lb.Database(database_path=db_path, read_only=False)
1818
conn = lb.Connection(db)
1919
conn.close()
@@ -23,7 +23,7 @@ def test_connection_close(tmp_path: Path) -> None:
2323

2424

2525
def test_connection_close_context_manager(tmp_path: Path) -> None:
26-
db_path = tmp_path / "test_connection_close_context_manager.lbug"
26+
db_path = tmp_path / "test_connection_close_context_manager.lbdb"
2727
with lb.Database(database_path=db_path, read_only=False) as db:
2828
with lb.Connection(db) as conn:
2929
pass

test/test_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def open_database_on_subprocess(tmp_path: Path, build_dir: Path) -> None:
2828

2929

3030
def test_database_close(tmp_path: Path, build_dir: Path) -> None:
31-
db_path = tmp_path / "test_database_close.lbug"
31+
db_path = tmp_path / "test_database_close.lbdb"
3232
db = lb.Database(database_path=db_path, read_only=False)
3333
assert not db.is_closed
3434
assert db._database is not None
@@ -56,7 +56,7 @@ def test_database_close(tmp_path: Path, build_dir: Path) -> None:
5656

5757

5858
def test_database_context_manager(tmp_path: Path, build_dir: Path) -> None:
59-
db_path = tmp_path / "test_database_context_manager.lbug"
59+
db_path = tmp_path / "test_database_context_manager.lbdb"
6060
with lb.Database(database_path=db_path, read_only=False) as db:
6161
assert not db.is_closed
6262
assert db._database is not None

0 commit comments

Comments
 (0)