mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a command to easily run rapydscript tests
This commit is contained in:
parent
3a9357d481
commit
6c9c141c3e
@ -13,7 +13,7 @@ __all__ = [
|
||||
'git_version',
|
||||
'develop', 'install',
|
||||
'kakasi', 'rapydscript', 'cacerts', 'recent_uas', 'resources',
|
||||
'check', 'to3', 'unicode_check', 'iterators_check', 'test',
|
||||
'check', 'to3', 'unicode_check', 'iterators_check', 'test', 'test_rs',
|
||||
'sdist', 'bootstrap', 'extdev',
|
||||
'manual', 'tag_release',
|
||||
'upload_to_server',
|
||||
@ -70,8 +70,9 @@ to3 = To3()
|
||||
unicode_check = UnicodeCheck()
|
||||
iterators_check = IteratorsCheck()
|
||||
|
||||
from setup.test import Test
|
||||
from setup.test import Test, TestRS
|
||||
test = Test()
|
||||
test_rs = TestRS()
|
||||
|
||||
from setup.resources import Resources, Kakasi, CACerts, RapydScript, RecentUAs
|
||||
resources = Resources()
|
||||
|
@ -175,3 +175,12 @@ class Test(Command):
|
||||
if opts.exclude_test_name:
|
||||
tests = remove_tests_by_name(tests, *opts.exclude_test_name)
|
||||
run_cli(tests, verbosity=opts.test_verbosity)
|
||||
|
||||
|
||||
class TestRS(Command):
|
||||
|
||||
description = 'Run tests for RapydScript code'
|
||||
|
||||
def run(self, opts):
|
||||
from calibre.utils.rapydscript import run_rapydscript_tests
|
||||
run_rapydscript_tests()
|
||||
|
Loading…
x
Reference in New Issue
Block a user