From 5f2a971680a12eb6363b4c70b45b82993acc28b2 Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Thu, 5 Jan 2023 15:34:12 +0100
Subject: [PATCH] fix typo in subtest variable name

---
 tests/test_determinist.py | 4 ++--
 tests/test_probabilist.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_determinist.py b/tests/test_determinist.py
index 4669b52..8276b01 100644
--- a/tests/test_determinist.py
+++ b/tests/test_determinist.py
@@ -96,7 +96,7 @@ class TestMasking(unittest.TestCase):
         )
 
     def test_conditions(self):
-        with self.subTest(condtions="observed streamflow values"):
+        with self.subTest(conditions="observed streamflow values"):
             cdt = numpy.array(["q_obs{<2000,>3000}"], dtype='|S32')
 
             msk = (_obs[0] < 2000) | (_obs[0] > 3000)
@@ -109,7 +109,7 @@ class TestMasking(unittest.TestCase):
                 evalhyd.evald(obs, prd, ["NSE"])[0]
             )
 
-        with self.subTest(condtions="observed streamflow statistics"):
+        with self.subTest(conditions="observed streamflow statistics"):
             cdt = numpy.array(["q_obs{>=median}"], dtype='|S32')
 
             msk = _obs[0] >= numpy.median(_obs)
diff --git a/tests/test_probabilist.py b/tests/test_probabilist.py
index 3d458ef..c42d7ff 100644
--- a/tests/test_probabilist.py
+++ b/tests/test_probabilist.py
@@ -87,7 +87,7 @@ class TestMasking(unittest.TestCase):
         )
 
     def test_conditions(self):
-        with self.subTest(condtions="observed streamflow values"):
+        with self.subTest(conditions="observed streamflow values"):
             cdt = numpy.array([["q_obs{<2000,>3000}"]], dtype='|S32')
 
             msk = (_obs[0] < 2000) | (_obs[0] > 3000)
@@ -100,7 +100,7 @@ class TestMasking(unittest.TestCase):
                 evalhyd.evalp(obs, prd, ["QS"])[0]
             )
 
-        with self.subTest(condtions="predicted streamflow statistics"):
+        with self.subTest(conditions="predicted streamflow statistics"):
             cdt = numpy.array([["q_prd_median{<=quantile0.7}"]], dtype='|S32')
 
             median = numpy.squeeze(numpy.median(_prd, 2))
-- 
GitLab