Skip to content

Commit

Permalink
added test for issue on github involving event that spans 2 months.
Browse files Browse the repository at this point in the history
  • Loading branch information
wreckage committed Mar 8, 2015
1 parent 8539af1 commit efecd23
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/integration_tests/test_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ def test_list_view_with_chunk_starts_ends_different_month(self):

valid_dates = {'03': [28, 29, 30, 31], '04': [1, 2]}
self.check_dates(event, valid_dates)

def test_list_view_with_chunk_starts_ends_different_month2(self):
"""
This tests that the issue opened on github by
Joe Tennies (github.com/Rotund) has been resolved
thanks to the work of Yaroslav Klyuyev (github.com/imposeren)
"""
event = create_event(
start_date=(2014, 7, 31),
end_date=(2014, 8, 1),
created_by=self.user,
title="Cool",
description="'chunk' event that lasts 2 days and doesn't repeat.",
)

valid_dates = {'07': [31], '08': [1]}
self.check_dates(event, valid_dates)

0 comments on commit efecd23

Please sign in to comment.