diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2023-02-28 19:05:55 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2023-03-01 15:22:18 -0600 |
commit | c83e4e523008337a6f8f638e65ca217177d8ed5c (patch) | |
tree | 40a8b5a6c0773afe4e08bec93743a9650f555dd5 /tests/integration/test_sqlite.py | |
parent | 0f330b54e15966ff74582cfa7d794f6b844d324c (diff) | |
download | requests-cache-c83e4e523008337a6f8f638e65ca217177d8ed5c.tar.gz |
Share SQLite connection objects among threads and use lock for write operations instead of using thread-local connections
Diffstat (limited to 'tests/integration/test_sqlite.py')
-rw-r--r-- | tests/integration/test_sqlite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/test_sqlite.py b/tests/integration/test_sqlite.py index af94610..04e4b61 100644 --- a/tests/integration/test_sqlite.py +++ b/tests/integration/test_sqlite.py @@ -32,7 +32,7 @@ class TestSQLiteDict(BaseStorageTest): def test_connection_kwargs(self, mock_sqlite): """A spot check to make sure optional connection kwargs gets passed to connection""" cache = self.storage_class('test', use_temp=True, timeout=0.5, invalid_kwarg='???') - mock_sqlite.connect.assert_called_with(cache.db_path, timeout=0.5) + mock_sqlite.connect.assert_called_with(cache.db_path, timeout=0.5, check_same_thread=False) def test_use_cache_dir(self): relative_path = self.storage_class(CACHE_NAME).db_path |