Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Nov 29, 2024
1 parent a41cb0a commit 1ee0f5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_integration/test_cache_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ def test_page_included_by_url_is_cached(
tmp_path,
plugin,
):
cache_dir = get_cache_directory('')
if not is_platformdirs_installed():
assert cache_dir is None
assert initialize_cache(600) is None
assert initialize_cache(600, '') is None
return

cache_dir = get_cache_directory('')
if not os.path.isdir(cache_dir):
os.makedirs(cache_dir, exist_ok=True)

file_path = os.path.join(
cache_dir, Cache.generate_unique_key_from_url(url),
)
Expand Down

0 comments on commit 1ee0f5c

Please sign in to comment.