From ecc27953e35e01f9f69a9243ed274648bea0a309 Mon Sep 17 00:00:00 2001 From: Luis Rodriguez Date: Wed, 8 May 2019 11:19:10 -0700 Subject: [PATCH] Remove unused import & refactor --- notebook/tests/selenium/test_dualmode_cellmode.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notebook/tests/selenium/test_dualmode_cellmode.py b/notebook/tests/selenium/test_dualmode_cellmode.py index 50e7f7c84..c89d6acd9 100644 --- a/notebook/tests/selenium/test_dualmode_cellmode.py +++ b/notebook/tests/selenium/test_dualmode_cellmode.py @@ -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