mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Change base Exception to UnsupportedRecurrence
This commit is contained in:
@ -4,6 +4,7 @@ Tests parsing `recur` strings from Todoist `date_string`s
|
||||
"""
|
||||
import pytest
|
||||
from todoist_taskwarrior import utils
|
||||
from todoist_taskwarrior import errors
|
||||
|
||||
|
||||
def test_hourly():
|
||||
@ -169,9 +170,9 @@ def test_annually():
|
||||
|
||||
|
||||
def test_unsupported():
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(errors.UnsupportedRecurrence):
|
||||
utils.parse_recur('every mon,tues,weds')
|
||||
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(errors.UnsupportedRecurrence):
|
||||
utils.parse_recur('every monday,tuesday,wednesday')
|
||||
|
||||
|
Reference in New Issue
Block a user