From 0728bfb68c0178234b2a5a934ae2842b2aa52672 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Hombashi Date: Sun, 10 Sep 2023 18:51:02 +0900 Subject: [PATCH] Add a test case --- test/test_simplesqlite.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_simplesqlite.py b/test/test_simplesqlite.py index 74ccb25..ac70ce5 100644 --- a/test/test_simplesqlite.py +++ b/test/test_simplesqlite.py @@ -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"], [