Skip to content

Commit

Permalink
more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkjames committed Mar 6, 2024
1 parent fa93376 commit 3392736
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions pyleoclim/tests/test_core_MultipleResolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_plot_t0(self,ms_fixture,request):
test resolution plot
'''
ms = request.getfixturevalue(ms_fixture)
msr = ms.resolution()
msr = ms.resolution(statistic=None)
fig,ax=msr.summary_plot()
pyleo.closefig(fig)
def test_plot_t1(self):
Expand All @@ -34,18 +34,20 @@ def test_plot_t1(self):
lr04 = pyleo.utils.load_dataset('LR04')
edc = pyleo.utils.load_dataset('EDC-dD')
ms = lr04.flip() & edc & co2ts # create MS object
msr = ms.resolution(time_unit='kyr BP')
msr = ms.resolution(time_unit='kyr BP',statistic=None)
fig,ax=msr.summary_plot()
pyleo.closefig(fig)

class TestUIMultipleResolutionDescribe:
@pytest.mark.parametrize('ms_fixture', ['multipleseries_basic','multipleseries_nans'])
@pytest.mark.parametrize(
('statistic','ms_fixture'),
(['mean','multipleseries_basic'],[None,'multipleseries_basic'],['mean','multipleseries_nans'],[None,'multipleseries_nans']))
def test_describe_t0(self,ms_fixture,request):
'''
test resolution describe
'''
ms = request.getfixturevalue(ms_fixture)
msr = ms.resolution()
msr = ms.resolution(statistic=None)
msr.describe()
def test_describe_t2(self):
'''
Expand All @@ -55,5 +57,5 @@ def test_describe_t2(self):
lr04 = pyleo.utils.load_dataset('LR04')
edc = pyleo.utils.load_dataset('EDC-dD')
ms = lr04.flip() & edc & co2ts # create MS object
msr = ms.resolution(time_unit='kyr BP')
msr = ms.resolution(time_unit='kyr BP',statistic=None)
msr.describe()
4 changes: 3 additions & 1 deletion pyleoclim/tests/test_core_MultipleSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,9 @@ def test_time_coverage_plot_t0(self,multipleseries_basic):
pyleo.closefig(fig)

class TestUIMultipleSeriesResolution:
@pytest.mark.parametrize(('statistic','ms_fixture'),(['mean',None],['multipleseries_basic','multipleseries_nans']))
@pytest.mark.parametrize(
('statistic','ms_fixture'),
(['mean','multipleseries_basic'],[None,'multipleseries_basic'],['mean','multipleseries_nans'],[None,'multipleseries_nans']))
def test_resolution_t0(self,statistic,ms_fixture,request):
'''
test resolution class
Expand Down

0 comments on commit 3392736

Please sign in to comment.