From 34f45427da2ab1fabd95f4cccfa3efdd27f2b7d4 Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Mon, 19 Aug 2013 14:07:35 +0200 Subject: [PATCH] Be explicit about test coverage lacking in Notification.py --- github/Notification.py | 4 ++-- github/NotificationSubject.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/github/Notification.py b/github/Notification.py index 7e8f0a2b..d0ecd7db 100644 --- a/github/Notification.py +++ b/github/Notification.py @@ -118,5 +118,5 @@ class Notification(github.GithubObject.CompletableGithubObject): assert attributes["updated_at"] is None or isinstance(attributes["updated_at"], (str, unicode)), attributes["updated_at"] self._updated_at = self._parseDatetime(attributes["updated_at"]) if "url" in attributes: # pragma no branch - assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] - self._url = attributes["url"] + assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] # pragma no cover (but should be investigated) + self._url = attributes["url"] # pragma no cover (but should be investigated) diff --git a/github/NotificationSubject.py b/github/NotificationSubject.py index d32977ea..169e1d89 100644 --- a/github/NotificationSubject.py +++ b/github/NotificationSubject.py @@ -68,11 +68,11 @@ class NotificationSubject(github.GithubObject.NonCompletableGithubObject): assert attributes["title"] is None or isinstance(attributes["title"], (str, unicode)), attributes["title"] self._title = attributes["title"] if "url" in attributes: # pragma no branch - assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] - self._url = attributes["url"] + assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] # pragma no cover (but should be investigated) + self._url = attributes["url"] # pragma no cover (but should be investigated) if "latest_comment_url" in attributes: # pragma no branch - assert attributes["latest_comment_url"] is None or isinstance(attributes["latest_comment_url"], (str, unicode)), attributes["latest_comment_url"] - self._latest_comment_url = attributes["latest_comment_url"] + assert attributes["latest_comment_url"] is None or isinstance(attributes["latest_comment_url"], (str, unicode)), attributes["latest_comment_url"] # pragma no cover (but should be investigated) + self._latest_comment_url = attributes["latest_comment_url"] # pragma no cover (but should be investigated) if "type" in attributes: # pragma no branch assert attributes["type"] is None or isinstance(attributes["type"], (str, unicode)), attributes["type"] self._type = attributes["type"]