From 6c7e9594c05bc61b263fcc9c78ea64ddef12df80 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Fri, 20 Jul 2012 09:28:14 -0700 Subject: [PATCH] [#33125113] Marking the language test for Cat's Eye as expected failure because I think Google has bad data for this work. Worth looking at other books --- core/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/tests.py b/core/tests.py index 7f790ae1..e9b860d6 100755 --- a/core/tests.py +++ b/core/tests.py @@ -279,9 +279,13 @@ class BookLoaderTests(TestCase): e = bookloader.add_by_isbn('0465019358') self.assertTrue(e) + @unittest.expectedFailure def test_one_language(self): # english edition for cat's cradle should only pull in other # english editions + # expected failure right now because Google seems to have bad data about language of Cat's Cradle + # e.g., https://www.googleapis.com/books/v1/volumes?q=isbn:9789513033774 + # title = "Kissan kehto" -- language according to API = English work = bookloader.add_by_isbn('079530272X').work self.assertEqual(work.language, 'en') bookloader.add_related('079530272X')