From f8f07270aeda4b70eed8c5bc3023dfb9a4a68625 Mon Sep 17 00:00:00 2001 From: Taher Chegini Date: Fri, 6 Oct 2023 22:39:13 -0400 Subject: [PATCH] MNT: Add new linters for checking print statement and pytest style. Then, fix the raised issues. [skip ci] --- conftest.py | 2 +- tests/test_pynldas2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 1f21cab..1a3d545 100644 --- a/conftest.py +++ b/conftest.py @@ -4,7 +4,7 @@ @pytest.fixture(autouse=True) -def add_standard_imports(doctest_namespace): +def _add_standard_imports(doctest_namespace): """Add async_retriever namespace for doctest.""" import pynldas2 as nldas diff --git a/tests/test_pynldas2.py b/tests/test_pynldas2.py index 14becbc..8f8ac9d 100644 --- a/tests/test_pynldas2.py +++ b/tests/test_pynldas2.py @@ -66,7 +66,7 @@ def test_geom_box(): assert_close(clm.prcp.mean(), 0.1534) -@pytest.mark.speedup +@pytest.mark.speedup() def test_snow(): clm = nldas.get_bycoords( (-89.6, 48.3), "2000-01-01", "2000-01-02", crs=DEF_CRS, variables="prcp", snow=True