Skip to content

Commit

Permalink
Merge pull request #43 from pysat/pysat_params
Browse files Browse the repository at this point in the history
ENH: Update to latest pysat standards
  • Loading branch information
rstoneback committed Feb 9, 2021
2 parents 4c0ec0e + 9d66c37 commit 574f02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pysatMadrigal/tests/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def setup_class(self):
# Make sure to use a temporary directory so that the user's setup is
# not altered
self.tempdir = tempfile.TemporaryDirectory()
self.saved_path = pysat.data_dir
pysat.utils.set_data_dir(self.tempdir.name, store=False)
self.saved_path = pysat.params['data_dirs']
pysat.params.data['data_dirs'] = [self.tempdir.name]

# Developers for instrument libraries should update the following line
# to point to their own subpackage location, e.g.,
Expand All @@ -66,6 +66,6 @@ def setup_class(self):
def teardown_class(self):
"""Runs after every method to clean up previous testing
"""
pysat.utils.set_data_dir(self.saved_path, store=False)
pysat.params.data['data_dirs'] = self.saved_path
self.tempdir.cleanup()
del self.inst_loc, self.saved_path, self.tempdir

0 comments on commit 574f02a

Please sign in to comment.