Skip to content

Commit

Permalink
Add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Sep 10, 2023
1 parent bcf48ac commit 0728bfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_simplesqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ def test_normal_con(self, mode):
assert con.database_path
assert con.connection

def test_normal_connect_kwargs(self, tmpdir):
p = tmpdir.join("test.sqlite3")
db_path = str(p)
con = SimpleSQLite(db_path, timeout=10)
assert con.database_path is None
assert con.connection

@pytest.mark.parametrize(
["value", "mode", "expected"],
[
Expand Down

0 comments on commit 0728bfb

Please sign in to comment.