kopia lustrzana https://github.com/collective/icalendar
remove parametrization
This adds suggested changes see https://github.com/collective/icalendar/pull/410#discussion_r982926625pull/410/head
rodzic
6bf5606880
commit
cdff06ea85
|
|
@ -12,12 +12,9 @@ def test_ignore_exceptions_on_broken_events_issue_104(events):
|
||||||
assert events.issue_104_mark_events_broken.is_broken # TODO: REMOVE FOR NEXT MAJOR RELEASE
|
assert events.issue_104_mark_events_broken.is_broken # TODO: REMOVE FOR NEXT MAJOR RELEASE
|
||||||
assert events.issue_104_mark_events_broken.errors == [(None, "Content line could not be parsed into parts: 'X': Invalid content line")]
|
assert events.issue_104_mark_events_broken.errors == [(None, "Content line could not be parsed into parts: 'X': Invalid content line")]
|
||||||
|
|
||||||
@pytest.mark.parametrize('calendar_file',
|
def test_dont_ignore_exceptions_on_broken_calendars_issue_104(calendars):
|
||||||
(('issue_104_broken_calendar.ics'),),
|
|
||||||
indirect=True)
|
|
||||||
def test_dont_ignore_exceptions_on_broken_calendars_issue_104(calendar_file):
|
|
||||||
'''Issue #104 - line parsing error in a VCALENDAR
|
'''Issue #104 - line parsing error in a VCALENDAR
|
||||||
(which doesn't have ignore_exceptions). Should raise an exception.
|
(which doesn't have ignore_exceptions). Should raise an exception.
|
||||||
'''
|
'''
|
||||||
with pytest.raises(ValueError), open(calendar_file) as f:
|
with pytest.raises(ValueError):
|
||||||
Calendar.from_ical(f.read())
|
calendars.issue_104_broken_calendar
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue