Skip to content

Commit

Permalink
Add a validity test for HOLIDAYS
Browse files Browse the repository at this point in the history
  • Loading branch information
dkess committed Nov 9, 2018
1 parent e200c64 commit 0ec9263
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/lab/hours_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from ocflib.lab.hours import _generate_regular_hours
from ocflib.lab.hours import Day
from ocflib.lab.hours import HOLIDAYS
from ocflib.lab.hours import Hour

FAKE_HOLIDAYS = [
Expand Down Expand Up @@ -128,3 +129,8 @@ def test_hours(day):
for hour in hours:
assert isinstance(hour.open, time)
assert isinstance(hour.close, time)


def test_holidays():
for holiday in HOLIDAYS:
assert holiday[0] <= holiday[1]

0 comments on commit 0ec9263

Please sign in to comment.