Skip to content

Commit

Permalink
Add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
LiaoU3 committed Sep 8, 2024
1 parent 8849dd0 commit 2737725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_market_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test__get_date_obj(self):
self.assertTrue(time.date(), mt._get_date_obj(time)) # datetime
self.assertTrue(time.date(), mt._get_date_obj(time.date())) # date
self.assertTrue(isinstance(mt._get_date_obj(), date)) # None
self.assertRaises(TypeError, mt._get_date_obj, "Unexpected type")

def test_in_open_day(self):
open_day = datetime(2024, 4, 1) # Monday
Expand Down

0 comments on commit 2737725

Please sign in to comment.