forked from mirrors/bookwyrm
Test loading ISNI from openlibrary
This commit is contained in:
parent
6ee1a628b0
commit
4248c23c49
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,9 @@ class Openlibrary(TestCase):
|
||||||
"type": "/type/datetime",
|
"type": "/type/datetime",
|
||||||
"value": "2008-08-31 10:09:33.413686",
|
"value": "2008-08-31 10:09:33.413686",
|
||||||
},
|
},
|
||||||
|
"remote_ids": {
|
||||||
|
"isni": "000111",
|
||||||
|
},
|
||||||
"key": "/authors/OL453734A",
|
"key": "/authors/OL453734A",
|
||||||
"type": {"key": "/type/author"},
|
"type": {"key": "/type/author"},
|
||||||
"id": 1259965,
|
"id": 1259965,
|
||||||
|
@ -110,6 +113,7 @@ class Openlibrary(TestCase):
|
||||||
self.assertIsInstance(result, models.Author)
|
self.assertIsInstance(result, models.Author)
|
||||||
self.assertEqual(result.name, "George Elliott")
|
self.assertEqual(result.name, "George Elliott")
|
||||||
self.assertEqual(result.openlibrary_key, "OL453734A")
|
self.assertEqual(result.openlibrary_key, "OL453734A")
|
||||||
|
self.assertEqual(result.isni, "000111")
|
||||||
|
|
||||||
def test_get_cover_url(self):
|
def test_get_cover_url(self):
|
||||||
"""formats a url that should contain the cover image"""
|
"""formats a url that should contain the cover image"""
|
||||||
|
|
Loading…
Reference in a new issue