This commit is contained in:
Kovid Goyal 2016-07-04 10:00:54 +05:30
parent 253fd95479
commit 671128d144

View File

@ -13,7 +13,7 @@ from calibre.ebooks.metadata.epub import get_metadata
from calibre.ebooks.metadata.opf2 import OPF from calibre.ebooks.metadata.opf2 import OPF
from calibre.srv.tests.base import LibraryBaseTest from calibre.srv.tests.base import LibraryBaseTest
from calibre.utils.imghdr import identify from calibre.utils.imghdr import identify
from calibre.utils.shared_file import share_open, test as test_share_open from calibre.utils.shared_file import share_open
def setUpModule(): def setUpModule():
# Needed for cover generation # Needed for cover generation
@ -174,7 +174,6 @@ class ContentTest(LibraryBaseTest):
self.ae(r.getheader('Used-Cache'), 'no') self.ae(r.getheader('Used-Cache'), 'no')
# Test file sharing in cache # Test file sharing in cache
test_share_open()
r, data = get('cover', 2) r, data = get('cover', 2)
self.ae(r.status, httplib.OK) self.ae(r.status, httplib.OK)
self.ae(data, db.cover(2)) self.ae(data, db.cover(2))