mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Remove some duplicated tests when running full test suite
This commit is contained in:
parent
346c6ad2ed
commit
3d37f16ee8
@ -572,8 +572,10 @@ def test_multiprocessing():
|
|||||||
p.join()
|
p.join()
|
||||||
|
|
||||||
|
|
||||||
def find_tests():
|
def find_tests(only_build=False):
|
||||||
ans = unittest.defaultTestLoader.loadTestsFromTestCase(BuildTest)
|
ans = unittest.defaultTestLoader.loadTestsFromTestCase(BuildTest)
|
||||||
|
if only_build:
|
||||||
|
return ans
|
||||||
from calibre.utils.icu_test import find_tests
|
from calibre.utils.icu_test import find_tests
|
||||||
ans.addTests(find_tests())
|
ans.addTests(find_tests())
|
||||||
from tinycss.tests.main import find_tests
|
from tinycss.tests.main import find_tests
|
||||||
|
@ -216,7 +216,7 @@ def find_tests(which_tests=None, exclude_tests=None):
|
|||||||
|
|
||||||
if ok('build'):
|
if ok('build'):
|
||||||
from calibre.test_build import find_tests
|
from calibre.test_build import find_tests
|
||||||
a(find_tests())
|
a(find_tests(only_build=True))
|
||||||
if ok('srv'):
|
if ok('srv'):
|
||||||
from calibre.srv.tests.main import find_tests
|
from calibre.srv.tests.main import find_tests
|
||||||
a(find_tests())
|
a(find_tests())
|
||||||
@ -273,6 +273,8 @@ def find_tests(which_tests=None, exclude_tests=None):
|
|||||||
a(find_tests())
|
a(find_tests())
|
||||||
from calibre.ebooks.html_entities import find_tests
|
from calibre.ebooks.html_entities import find_tests
|
||||||
a(find_tests())
|
a(find_tests())
|
||||||
|
from calibre.spell.dictionary import find_tests
|
||||||
|
a(find_tests())
|
||||||
if ok('misc'):
|
if ok('misc'):
|
||||||
from calibre.ebooks.html.input import find_tests
|
from calibre.ebooks.html.input import find_tests
|
||||||
a(find_tests())
|
a(find_tests())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user