mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-10 02:24:22 +02:00
Use tmp_path fixture in test_recreate, refs #503
This commit is contained in:
parent
7b2d1c0ffd
commit
079bf1f4dc
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ def test_recreate_not_allowed_for_connection():
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"use_path,file_exists", [(True, True), (True, False), (False, True), (False, False)]
|
"use_path,file_exists", [(True, True), (True, False), (False, True), (False, False)]
|
||||||
)
|
)
|
||||||
def test_recreate(tmpdir, use_path, file_exists):
|
def test_recreate(tmp_path, use_path, file_exists):
|
||||||
filepath = str(tmpdir / "data.db")
|
filepath = str(tmp_path / "data.db")
|
||||||
if use_path:
|
if use_path:
|
||||||
filepath = pathlib.Path(filepath)
|
filepath = pathlib.Path(filepath)
|
||||||
if file_exists:
|
if file_exists:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue