diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..fed1737 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[nosetests] +with-doctest=1 diff --git a/urbanairship/push/audience.py b/urbanairship/push/audience.py index 286d367..b52c7d1 100644 --- a/urbanairship/push/audience.py +++ b/urbanairship/push/audience.py @@ -159,7 +159,7 @@ def recent_date(**kwargs): >>> recent_date(months=6) {'recent': {'months': 6}} >>> recent_date(weeks=3) - {True, 'recent': {'weeks': 3}} + {'recent': {'weeks': 3}} """ if not len(kwargs) == 1: raise ValueError("Must specificy a single date resolution") diff --git a/urbanairship/push/payload.py b/urbanairship/push/payload.py index 694a987..b533563 100644 --- a/urbanairship/push/payload.py +++ b/urbanairship/push/payload.py @@ -61,7 +61,7 @@ def ios(alert=None, badge=None, sound=None, content_available=False, sent to the device. :keyword expiry: An integer or time set in UTC as a string >>> ios(alert='Hello!', sound='cat.caf', - ... extra={'articleid': '12345'}) + ... extra={'articleid': '12345'}) # doctest: +SKIP {'sound': 'cat.caf', 'extra': {'articleid': '12345'}, 'alert': 'Hello!'} """ @@ -107,7 +107,7 @@ def android(alert=None, collapse_key=None, time_to_live=None, for details on ``collapse_key``, ``time_to_live``, and ``delay_while_idle``. - >>> android(alert='Hello!', extra={'articleid': '12345'}) + >>> android(alert='Hello!', extra={'articleid': '12345'}) # doctest: +SKIP {'extra': {'articleid': '12345'}, 'alert': 'Hello!'} """ @@ -141,7 +141,7 @@ def amazon(alert=None, consolidation_key=None, expires_after=None, extra=None, :keyword summary: String >>> amazon(alert='Hello!', title='My Title', - ... extra={'articleid': '12345'}) + ... extra={'articleid': '12345'}) # doctest: +SKIP {'title': 'My Title', 'extra': {'articleid': '12345'}, 'alert': 'Hello!'} """