Skip to content

Commit

Permalink
Merge pull request #58 from MetOffice/feature_test_precisyy
Browse files Browse the repository at this point in the history
#50 ADD: unittest for precis_yy
  • Loading branch information
zmaalick committed Jul 3, 2020
2 parents 7cdb965 + 13e5f96 commit e57402c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/catnip/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,14 @@ def test_convert_to_um_stamp(self):
self.assertRaises(ValueError, convert_to_um_stamp,dt,'YMDH')


@unittest.skip("TO DO")

def test_precisYY(self):
"""Test nine"""
pass

self.assertEqual(precis_yy(2001),'k1')
self.assertEqual(precis_yy(1995),'j5')

self.assertRaises(TypeError, precis_yy,'1995')
self.assertRaises(ValueError, precis_yy,12345)

@unittest.skip("TO DO")
def test_precisD2(self):
Expand Down

0 comments on commit e57402c

Please sign in to comment.