Add coverage ignore pragmas
This commit is contained in:
parent
7e4fb52d93
commit
f742df27b4
4 changed files with 8 additions and 8 deletions
|
@ -62,7 +62,7 @@ class Photo(TroveboxObject):
|
|||
value = {}
|
||||
if "next" in result:
|
||||
# Workaround for APIv1
|
||||
if not isinstance(result["next"], list):
|
||||
if not isinstance(result["next"], list): # pragma: no cover
|
||||
result["next"] = [result["next"]]
|
||||
|
||||
value["next"] = []
|
||||
|
@ -71,7 +71,7 @@ class Photo(TroveboxObject):
|
|||
|
||||
if "previous" in result:
|
||||
# Workaround for APIv1
|
||||
if not isinstance(result["previous"], list):
|
||||
if not isinstance(result["previous"], list): # pragma: no cover
|
||||
result["previous"] = [result["previous"]]
|
||||
|
||||
value["previous"] = []
|
||||
|
@ -89,7 +89,7 @@ class Photo(TroveboxObject):
|
|||
self.id, **kwds)["result"]
|
||||
|
||||
# APIv1 doesn't return the transformed photo (frontend issue #955)
|
||||
if isinstance(result, bool):
|
||||
if isinstance(result, bool): # pragma: no cover
|
||||
result = self._trovebox.get("/photo/%s/view.json" %
|
||||
self.id)["result"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue