From cba8fd950bfaa5420ea62051c3baadff14f8f7d0 Mon Sep 17 00:00:00 2001 From: Mads Christian Lund Date: Thu, 15 Aug 2024 08:34:00 +0200 Subject: [PATCH] Renamed e2e unittest methods Added missing "test" prefix required by the unittest framework. --- tests/e2e/test_process.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/e2e/test_process.py b/tests/e2e/test_process.py index c66ac57c..8a0346e8 100644 --- a/tests/e2e/test_process.py +++ b/tests/e2e/test_process.py @@ -20,20 +20,20 @@ class TestProcess(unittest.TestCase): - def get_vars(self): + def test_get_vars(self): '''Test variable table lookup retrieval''' v = getVars() self.assertIsInstance(v, pd.DataFrame) self.assertTrue(v.columns[0] in 'standard_name') self.assertTrue(v.columns[2] in 'units') - def get_meta(self): + def test_get_meta(self): '''Test AWS names retrieval''' m = getMeta() self.assertIsInstance(m, dict) self.assertTrue('references' in m) - def add_all(self): + def test_add_all(self): '''Test variable and metadata attributes added to Dataset''' d = xr.Dataset() v = getVars() @@ -53,7 +53,7 @@ def add_all(self): self.assertTrue(d.attrs['station_id']=='TEST') self.assertIsInstance(d.attrs['references'], str) - def l0_to_l3(self): + def test_l0_to_l3(self): '''Test L0 to L3 processing''' pAWS = AWS(TEST_CONFIG_PATH.as_posix(), TEST_DATA_ROOT_PATH.as_posix()) pAWS.process() @@ -65,17 +65,17 @@ def get_l2_cli(self): exit_status = os.system('get_l2 -h') self.assertEqual(exit_status, 0) - def join_l2_cli(self): + def test_join_l2_cli(self): '''Test join_l2 CLI''' exit_status = os.system('join_l2 -h') self.assertEqual(exit_status, 0) - def l2_to_l3_cli(self): + def test_l2_to_l3_cli(self): '''Test get_l2tol3 CLI''' exit_status = os.system('get_l2tol3 -h') self.assertEqual(exit_status, 0) - def join_l3_cli(self): + def test_join_l3_cli(self): '''Test join_l3 CLI''' exit_status = os.system('join_l3 -h') self.assertEqual(exit_status, 0)