Skip to content

Commit

Permalink
fix(types): Update return types
Browse files Browse the repository at this point in the history
  • Loading branch information
zflamig committed Feb 27, 2018
1 parent 9aa4fd6 commit 1a5f4b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doiclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _load(self, json=None):
self.urls = []
if 'link' in json:
self.urls = [x['URL'] for x in json['link']]
self.rev = ""
self.size = ""
self.hashes = ""
self.rev = None
self.size = None
self.hashes = {}
self._fetched = True
4 changes: 2 additions & 2 deletions tests/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def test_get_matsu():
res = res.to_json()
assert res["urls"] == ["http://link.springer.com/article/10.1007/s41060-017-0052-3/fulltext.html", "http://link.springer.com/content/pdf/10.1007/s41060-017-0052-3.pdf", "http://link.springer.com/content/pdf/10.1007/s41060-017-0052-3.pdf"]
assert res["did"] == "10.1007/s41060-017-0052-3"
assert res["rev"] == ""
assert res["size"] == ""
assert res["rev"] == None
assert res["size"] == None

0 comments on commit 1a5f4b2

Please sign in to comment.