Skip to content

Commit

Permalink
use default_cache fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
alphasentaurii committed Apr 17, 2024
1 parent a7be5f3 commit 96cde8b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def reset_defaults(self):
Any kwargs passed into a ConfigState object will override these default values.
This reset is 'softer' than the crds built-in crds.config.clear_crds_state()."""
self.default_config = dict(
CRDS_PATH=os.environ.get("CRDS_PATH", "tmp/crds-cache-default-test"),
CRDS_PATH=os.environ.get("CRDS_PATH", "/tmp/crds-cache-default-test"),
# CRDS_CONTEXT=os.environ.get("CRDS_CONTEXT"),
# CRDS_TEST_ROOT=os.environ.get("CRDS_TEST_ROOT"),
# CRDS_TESTING_CACHE=os.environ.get("CRDS_TESTING_CACHE"),
Expand Down Expand Up @@ -223,10 +223,7 @@ def hst_shared_cache_state(crds_shared_group_cache):

@fixture(scope='function')
def default_cache_state(default_cache):
cfg = ConfigState()
cfg.reset_defaults()
cfg.cache = default_cache
cfg.mode = 'auto'
cfg = ConfigState(cache=default_cache, mode='auto')
cfg.config_setup()


Expand Down

0 comments on commit 96cde8b

Please sign in to comment.