Remove unused import & refactor

Luis Rodriguez 7 years ago
parent 89e678c74c
commit ecc27953e3

@ -1,10 +1,9 @@
"""Test keyboard shortcuts that change the cell's mode."""
from selenium.webdriver.common.keys import Keys
def test_dualmode_cellmode(notebook):
def get_cell_cm_mode(index):
code_mirror_mode = notebook.browser.execute_script(
"return Jupyter.notebook.get_cell("+str(index)+").code_mirror.getMode().name;")
"return Jupyter.notebook.get_cell(%s).code_mirror.getMode().name;"%index)
return code_mirror_mode

Loading…
Cancel
Save