Skip to content

Commit

Permalink
fix test case when dining hall is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Mar 7, 2018
1 parent 16be358 commit cb8c6b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/dining_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def test_dining(self):
self.assertTrue(len(venues) > 0)
id = str(venues["id"])
data = self.din.menu_daily(id)
self.assertTrue(len(data["result_data"]["Document"]["tblMenu"]["tblDayPart"][0]) >= 2)
dayPart = data["result_data"]["Document"]["tblMenu"]["tblDayPart"]
if len(dayPart) > 0:
self.assertTrue(len(dayPart[0]) >= 2)

def test_dining_normalization(self):
data = self.din.menu_daily("593")
Expand Down

0 comments on commit cb8c6b2

Please sign in to comment.