summaryrefslogtreecommitdiff
path: root/tests/integration/test_sqlite.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-29 21:43:16 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-29 22:02:13 -0500
commit3e3ae7d2279eeee44b3a1cb1e989bc12b3a28b70 (patch)
tree214293cf8c428560a4dd83040279144af8506a70 /tests/integration/test_sqlite.py
parentf707ddeeee5c29881c0de96092a01e78a905a401 (diff)
downloadrequests-cache-3e3ae7d2279eeee44b3a1cb1e989bc12b3a28b70.tar.gz
Use pathlib.Path objects for all file paths in Filesystem and SQLite backends
Diffstat (limited to 'tests/integration/test_sqlite.py')
-rw-r--r--tests/integration/test_sqlite.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration/test_sqlite.py b/tests/integration/test_sqlite.py
index c7107e8..76ceb4a 100644
--- a/tests/integration/test_sqlite.py
+++ b/tests/integration/test_sqlite.py
@@ -24,14 +24,14 @@ class SQLiteTestCase(BaseStorageTest):
def test_use_cache_dir(self):
relative_path = self.storage_class(CACHE_NAME).db_path
cache_dir_path = self.storage_class(CACHE_NAME, use_cache_dir=True).db_path
- assert not relative_path.startswith(user_cache_dir())
- assert cache_dir_path.startswith(user_cache_dir())
+ assert not str(relative_path).startswith(user_cache_dir())
+ assert str(cache_dir_path).startswith(user_cache_dir())
def test_use_temp(self):
relative_path = self.storage_class(CACHE_NAME).db_path
temp_path = self.storage_class(CACHE_NAME, use_temp=True).db_path
- assert not relative_path.startswith(gettempdir())
- assert temp_path.startswith(gettempdir())
+ assert not str(relative_path).startswith(gettempdir())
+ assert str(temp_path).startswith(gettempdir())
def test_use_memory(self):
cache = self.init_cache(use_memory=True)