2020class TestUtilsExtractInstThroughMod (object ):
2121 """Unit tests for `instrument_view_through_model`."""
2222
23- def setup (self ):
23+ def setup_method (self ):
2424 """Set up the unit test environment for each method."""
2525
2626 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing' )
@@ -51,7 +51,7 @@ def setup(self):
5151 self .out = []
5252 return
5353
54- def teardown (self ):
54+ def teardown_method (self ):
5555 """Clean up the unit test environment after each method."""
5656
5757 del self .inst , self .model , self .input_args , self .out , self .input_kwargs
@@ -205,7 +205,7 @@ def test_success_for_some_already_ran_data(self, caplog):
205205class TestUtilsExtractModObs (TestUtilsExtractInstThroughMod ):
206206 """Unit tests for `utils.extract.extract_modelled_observations`."""
207207
208- def setup (self ):
208+ def setup_method (self ):
209209 """Set up the unit test environment for each method."""
210210
211211 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing' )
@@ -233,7 +233,7 @@ def setup(self):
233233 self .out = []
234234 return
235235
236- def teardown (self ):
236+ def teardown_method (self ):
237237 """Clean up the unit test environment after each method."""
238238
239239 del self .inst , self .model , self .input_args , self .out , self .input_kwargs
@@ -351,7 +351,7 @@ def test_success_for_some_already_ran_data(self, caplog):
351351class TestUtilsExtractModObsXarray (TestUtilsExtractModObs ):
352352 """Xarray unit tests for `utils.extract.extract_modelled_observations`."""
353353
354- def setup (self ):
354+ def setup_method (self ):
355355 """Set up the unit test environment for each method."""
356356
357357 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing_xarray' )
@@ -379,7 +379,7 @@ def setup(self):
379379 self .out = []
380380 return
381381
382- def teardown (self ):
382+ def teardown_method (self ):
383383 """Clean up the unit test environment after each method."""
384384
385385 del self .inst , self .model , self .input_args , self .out , self .input_kwargs
@@ -393,7 +393,7 @@ def teardown(self):
393393class TestUtilsExtractModObsXarray2D (TestUtilsExtractModObs ):
394394 """Xarray unit tests for `utils.extract.extract_modelled_observations`."""
395395
396- def setup (self ):
396+ def setup_method (self ):
397397 """Set up the unit test environment for each method."""
398398
399399 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing2d_xarray' )
@@ -421,7 +421,7 @@ def setup(self):
421421 self .out = []
422422 return
423423
424- def teardown (self ):
424+ def teardown_method (self ):
425425 """Clean up the unit test environment after each method."""
426426
427427 del self .inst , self .model , self .input_args , self .out , self .input_kwargs
@@ -431,7 +431,7 @@ def teardown(self):
431431class TestUtilsExtractInstModViewXarray (TestUtilsExtractInstThroughMod ):
432432 """Xarray unit tests for `instrument_view_through_model`."""
433433
434- def setup (self ):
434+ def setup_method (self ):
435435 """Run before every method to create a clean testing setup."""
436436
437437 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing2d_xarray' )
@@ -464,7 +464,7 @@ def setup(self):
464464
465465 return
466466
467- def teardown (self ):
467+ def teardown_method (self ):
468468 """Run after every method to clean up previous testing."""
469469
470470 del self .inst , self .model , self .input_args , self .out , self .input_kwargs
@@ -482,7 +482,7 @@ def teardown(self):
482482class TestUtilsAltitudePressure (object ):
483483 """Unit tests for `utils.extract.instrument_altitude_to_model_pressure`."""
484484
485- def setup (self ):
485+ def setup_method (self ):
486486 """Set up the unit test environment for each method."""
487487
488488 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing' )
@@ -509,7 +509,7 @@ def setup(self):
509509 self .out = []
510510 return
511511
512- def teardown (self ):
512+ def teardown_method (self ):
513513 """Clean up the unit test environment after each method."""
514514
515515 del self .inst , self .model , self .input_args , self .out
@@ -618,7 +618,7 @@ def test_alternate_output_names(self):
618618class TestUtilsAltitudePressureXarray (TestUtilsAltitudePressure ):
619619 """Xarray unit tests for `instrument_altitude_to_model_pressure`."""
620620
621- def setup (self ):
621+ def setup_method (self ):
622622 """Set up the unit test environment for each method."""
623623
624624 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing2d_xarray' )
@@ -645,7 +645,7 @@ def setup(self):
645645 self .out = []
646646 return
647647
648- def teardown (self ):
648+ def teardown_method (self ):
649649 """Clean up the unit test environment after each method."""
650650
651651 del self .inst , self .model , self .input_args , self .out
@@ -660,7 +660,7 @@ def teardown(self):
660660class TestUtilsExtractInstModIrregView (object ):
661661 """Unit tests for `utils.extract.instrument_view_irregular_model`."""
662662
663- def setup (self ):
663+ def setup_method (self ):
664664 """Run before every method to create a clean testing setup."""
665665
666666 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing' ,
@@ -689,7 +689,7 @@ def setup(self):
689689
690690 return
691691
692- def teardown (self ):
692+ def teardown_method (self ):
693693 """Run after every method to clean up previous testing."""
694694
695695 del self .inst , self .model , self .input_args , self .out , self .in_kwargs
@@ -773,7 +773,7 @@ def test_bad_kwarg_input(self, bad_key, bad_val, err_msg):
773773class TestUtilsExtractInstModIrregViewXarray (TestUtilsExtractInstModIrregView ):
774774 """Xarray unit tests for `instrument_view_irregular_model`."""
775775
776- def setup (self ):
776+ def setup_method (self ):
777777 """Run before every method to create a clean testing setup."""
778778
779779 self .inst = pysat .Instrument (platform = 'pysat' , name = 'testing2d_xarray' ,
@@ -802,7 +802,7 @@ def setup(self):
802802
803803 return
804804
805- def teardown (self ):
805+ def teardown_method (self ):
806806 """Run after every method to clean up previous testing."""
807807
808808 del self .inst , self .model , self .input_args , self .out , self .in_kwargs
0 commit comments