File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66Unit tests that verify our caching methods work correctly.
77"""
88
9+ import os
910import time
10- from tempfile import mkdtemp
1111from unittest .mock import ANY , Mock
1212
1313import pytest
@@ -143,7 +143,7 @@ def test_update_cached_response_no_local_cache(self):
143143 result = cc .update_cached_response (req , resp )
144144 assert result is resp
145145
146- def test_update_cached_response_with_valid_headers_separate_body (self ):
146+ def test_update_cached_response_with_valid_headers_separate_body (self , tmp_path ):
147147 """
148148 If the local cache has the given URL ``update_cached_response()`` will:
149149
@@ -152,7 +152,7 @@ def test_update_cached_response_with_valid_headers_separate_body(self):
152152
153153 This is the version for a cache that stores a separate body.
154154 """
155- cache = SeparateBodyFileCache (mkdtemp ( ))
155+ cache = SeparateBodyFileCache (os . fsdecode ( tmp_path ))
156156 self .update_cached_response_with_valid_headers_test (cache )
157157
158158 def test_update_cached_response_with_valid_headers (self ):
You can’t perform that action at this time.
0 commit comments