mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
pep8
This commit is contained in:
parent
054752d956
commit
2d41f863b7
@ -13,6 +13,7 @@ from css_selectors.errors import SelectorSyntaxError, ExpressionError
|
||||
from css_selectors.parser import tokenize, parse
|
||||
from css_selectors.select import Select
|
||||
|
||||
|
||||
class TestCSSSelectors(unittest.TestCase):
|
||||
|
||||
# Test data {{{
|
||||
@ -796,10 +797,12 @@ by William Shakespeare
|
||||
|
||||
# }}}
|
||||
|
||||
|
||||
# Run tests {{{
|
||||
def find_tests():
|
||||
return unittest.defaultTestLoader.loadTestsFromTestCase(TestCSSSelectors)
|
||||
|
||||
|
||||
def run_tests(find_tests=find_tests, for_build=False):
|
||||
if not for_build:
|
||||
parser = argparse.ArgumentParser()
|
||||
@ -834,6 +837,7 @@ def run_tests(find_tests=find_tests, for_build=False):
|
||||
if for_build and result.errors or result.failures:
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_tests()
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user