Skip to content

Commit

Permalink
Renamed e2e unittest methods
Browse files Browse the repository at this point in the history
Added missing "test" prefix required by the unittest framework.
  • Loading branch information
ladsmund committed Aug 15, 2024
1 parent 09950de commit cba8fd9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/e2e/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit cba8fd9

Please sign in to comment.