mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
shorten the js section names
This commit is contained in:
parent
04e0725ba9
commit
4ad7e35809
@ -159,20 +159,24 @@ class PyTestController(TestController):
|
||||
self.cmd[2] = self.pycmd
|
||||
super(PyTestController, self).launch()
|
||||
|
||||
js_prefix = 'js-'
|
||||
|
||||
def get_js_test_dir():
|
||||
import IPython.html.tests as t
|
||||
return os.path.join(os.path.dirname(t.__file__), 'casperjs')
|
||||
return os.path.join(os.path.dirname(t.__file__), 'casperjs','')
|
||||
|
||||
def all_js_groups():
|
||||
import glob
|
||||
return glob.glob(get_js_test_dir() + '*/')
|
||||
test_dir = get_js_test_dir()
|
||||
all_subdirs = glob.glob(test_dir + '*/')
|
||||
return [js_prefix+os.path.relpath(x, test_dir) for x in all_subdirs]
|
||||
|
||||
class JSController(TestController):
|
||||
"""Run CasperJS tests """
|
||||
def __init__(self, section):
|
||||
"""Create new test runner."""
|
||||
TestController.__init__(self)
|
||||
self.section = section
|
||||
self.section = section[len(js_prefix):]
|
||||
|
||||
self.ipydir = TemporaryDirectory()
|
||||
self.nbdir = TemporaryDirectory()
|
||||
|
Loading…
Reference in New Issue
Block a user