Skip to content

Commit

Permalink
Python unit test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent committed Dec 15, 2023
1 parent 2133a93 commit 81aca2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/server/tests/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_add_remove_calendar(self):
path1 = self.get_resource_path("/TEST1.calendar")
path2 = self.get_resource_path("/TEST2.calendar")

cal = jpy.get_type("io.deephaven.time.calendar.BusinessCalendarParser").loadBusinessCalendar(path2)
cal = jpy.get_type("io.deephaven.time.calendar.BusinessCalendarXMLParser").loadBusinessCalendar(path2)

with self.assertRaises(DHError) as cm:
add_calendar(None)
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_calendar_names(self):
self.assertEqual(calendar_names(), ['CAL1', 'CAL2', 'USBANK_EXAMPLE', 'USNYSE_EXAMPLE', 'UTC'])

def test_calendar(self):
self.assertEqual('USNYSE', calendar("USNYSE_EXAMPLE").name())
self.assertEqual('USNYSE_EXAMPLE', calendar("USNYSE_EXAMPLE").name())
self.assertEqual('CAL1', calendar("CAL1").name())
self.assertEqual(calendar_name(), calendar().name())

Expand Down

0 comments on commit 81aca2a

Please sign in to comment.