Skip to content

Commit

Permalink
STY: update tests for consistency across projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Oct 8, 2020
1 parent 14d77d4 commit bafb6a6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pysatNASA/tests/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@


class TestInstruments(InstTestClass):
"""Uses class level setup and teardown so that all tests use the same
temporary directory. We do not want to geneate a new tempdir for each test,
as the load tests need to be the same as the download tests.
"""

def setup_class(self):
"""Runs once before the tests to initialize the testing setup."""
Expand All @@ -54,13 +58,7 @@ def setup_class(self):
self.inst_loc = pysatNASA.instruments

def teardown_class(self):
"""Runs after every method to clean up previous testing."""
"""Runs once to clean up testing from this class."""
pysat.utils.set_data_dir(self.saved_path, store=False)
self.tempdir.cleanup()
del self.inst_loc, self.saved_path, self.tempdir

def setup_method(self):
"""Runs before every method to create a clean testing setup."""

def teardown_method(self):
"""Runs after every method to clean up previous testing."""

0 comments on commit bafb6a6

Please sign in to comment.