diff --git a/src/calibre/ebooks/metadata/sources/big_book_search.py b/src/calibre/ebooks/metadata/sources/big_book_search.py index d475cb983c..6e294b589a 100644 --- a/src/calibre/ebooks/metadata/sources/big_book_search.py +++ b/src/calibre/ebooks/metadata/sources/big_book_search.py @@ -58,5 +58,6 @@ def test(): urls = get_urls(br, ['consider', 'phlebas', 'banks']) pprint.pprint(urls) + if __name__ == '__main__': test() diff --git a/src/calibre/ebooks/metadata/sources/google_images.py b/src/calibre/ebooks/metadata/sources/google_images.py index 54dac15f18..8bf5548961 100644 --- a/src/calibre/ebooks/metadata/sources/google_images.py +++ b/src/calibre/ebooks/metadata/sources/google_images.py @@ -97,5 +97,6 @@ def test(): authors=('Joe Abercrombie',)) print ('Downloaded', rq.qsize(), 'covers') + if __name__ == '__main__': test()