From 6d9f67d3eda2f4fa9a85bf36ded2d55d3aaa7018 Mon Sep 17 00:00:00 2001 From: Robert Wilson Date: Mon, 18 Dec 2023 15:29:02 +0000 Subject: [PATCH] a couple of testing tweaks --- tests/test_addetc_lazy.py | 2 +- tests/test_cdocalls.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_addetc_lazy.py b/tests/test_addetc_lazy.py index 21b5b253..b89dc9a9 100644 --- a/tests/test_addetc_lazy.py +++ b/tests/test_addetc_lazy.py @@ -4,7 +4,7 @@ import pandas as pd import xarray as xr import numpy as np -import os, pytest, pytest +import os, pytest ff = "data/sst.mon.mean.nc" diff --git a/tests/test_cdocalls.py b/tests/test_cdocalls.py index 55254474..dfc3c14c 100644 --- a/tests/test_cdocalls.py +++ b/tests/test_cdocalls.py @@ -521,12 +521,12 @@ def test_callchecks(self): data.split("year") assert "cdo -s -splityear data/sst.mon.mean.nc" in data.history[0] - data = nc.open_data(ff, checks = False) - data.annual_anomaly(baseline=[1970, 1979], window=10) - assert ( - "cdo --timestat_date last -L -sub -runmean,10 -yearmean data/sst.mon.mean.nc -timmean -selyear,1970/1979 data/sst.mon.mean.nc" - in data.history[0] - ) + #data = nc.open_data(ff, checks = False) + #data.annual_anomaly(baseline=[1970, 1979], window=10) + #assert ( + # "cdo --timestat_date last -L -sub -runmean,10 -yearmean data/sst.mon.mean.nc -timmean -selyear,1970/1979 data/sst.mon.mean.nc" + # in data.history[0] + #) data = nc.open_data(ff, checks = False) data.monthly_anomaly(baseline=[1970, 1979])