Run the build tests also from python setup.py test

This commit is contained in:
Kovid Goyal 2016-06-24 08:45:57 +05:30
parent 975efe314e
commit 3310d3519a

View File

@ -8,7 +8,7 @@ import unittest
from setup import Command
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants'.split())
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants build'.split())
def find_tests(which_tests=None):
ans = []
@ -16,6 +16,9 @@ def find_tests(which_tests=None):
def ok(x):
return not which_tests or x in which_tests
if ok('build'):
from calibre.test_build import find_tests
a(find_tests())
if ok('srv'):
from calibre.srv.tests.main import find_tests
a(find_tests())