Skip to content

Commit

Permalink
output_list factored out
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesc Alted committed Dec 19, 2014
1 parent 7a1bed4 commit 34f0db3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reflexible/conv2netcdf4/tests/test_netcdf4_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from reflexible.conv2netcdf4 import Header


output_list = ['Fwd1_V9.02', 'Fwd2_V9.02', 'Bwd1_V9.02', 'Bwd2_V9.2beta']


class Dataset:
def __init__(self, fp_name):
self.fp_name = fp_name
Expand All @@ -25,7 +28,7 @@ def cleanup(self):


class TestStructure:
@pytest.fixture(autouse=True, params=['Fwd1_V9.02', 'Fwd2_V9.02', 'Bwd1_V9.02', 'Bwd2_V9.2beta'])
@pytest.fixture(autouse=True, params=output_list)
def setup(self, request, tmpdir):
dataset = Dataset(request.param)
self.ncid, self.fp_path, self.nc_path, self.H = dataset.setup(tmpdir)
Expand Down Expand Up @@ -210,7 +213,7 @@ def test_species_pptv(self):


class TestWetDryDeps:
@pytest.fixture(autouse=True, params=['Fwd1_V9.02', 'Fwd2_V9.02', 'Bwd1_V9.02', 'Bwd2_V9.2beta'])
@pytest.fixture(autouse=True, params=output_list)
def setup(self, request, tmpdir):
self.dataset = dataset = Dataset(request.param)
self.ncid, self.fp_path, self.nc_path, self.H = dataset.setup(tmpdir)
Expand Down

0 comments on commit 34f0db3

Please sign in to comment.