Skip to content

Commit

Permalink
pytests: isolate astropy cache from user defaults (lightkurve#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
orionlee committed Dec 5, 2023
1 parent eabc909 commit 5e4c619
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ def pytest_collection_modifyitems(config, items):
_cache_dir = os.path.join(os.environ['XDG_CACHE_HOME'], 'lightkurve')
if not os.path.isdir(_cache_dir):
os.mkdir(_cache_dir)

_astropy_cache_dir = os.path.join(os.environ['XDG_CACHE_HOME'], 'astropy')
if not os.path.isdir(_astropy_cache_dir):
os.mkdir(_astropy_cache_dir)

0 comments on commit 5e4c619

Please sign in to comment.