From 298f8e8b7fa853c1af552dbe224aa12fb630625d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 Dec 2022 09:55:08 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/sources/identify.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/identify.py b/src/calibre/ebooks/metadata/sources/identify.py index 83a1d1ab35..220eb4295b 100644 --- a/src/calibre/ebooks/metadata/sources/identify.py +++ b/src/calibre/ebooks/metadata/sources/identify.py @@ -633,9 +633,8 @@ def urls_from_identifiers(identifiers, sort_results=False): # {{{ # }}} -if __name__ == '__main__': # tests {{{ - # To run these test use: calibre-debug -e - # src/calibre/ebooks/metadata/sources/identify.py +def tests(start=0, limit=256): # tests {{{ + # To run these test use: calibre-debug -c "from calibre.ebooks.metadata.sources.identify import tests; tests()" from calibre.ebooks.metadata.sources.test import ( authors_test, test_identify, title_test ) @@ -678,5 +677,5 @@ if __name__ == '__main__': # tests {{{ ] # test_identify(tests[1:2]) - test_identify(tests) + test_identify(tests[start:limit]) # }}}