Skip to content

Commit 66b257b

Browse files
author
arovitn
committed
removing test_empty_arrows_keys.py and moving the delete_cell test into test_deletecell.py
1 parent 0afa1e5 commit 66b257b

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

notebook/tests/selenium/test_deletecell.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ def cell_is_deletable(nb, index):
33
JS = 'return Jupyter.notebook.get_cell({}).is_deletable();'.format(index)
44
return nb.browser.execute_script(JS)
55

6+
def remove_cells(notebook):
7+
for i in notebook.cells:
8+
notebook.delete_cell(notebook.index(i))
9+
610
def test_delete_cells(notebook):
711
a = 'print("a")'
812
b = 'print("b")'
@@ -51,3 +55,6 @@ def test_delete_cells(notebook):
5155
notebook.current_cell.send_keys('cv')
5256
assert len(notebook.cells) == 2
5357
assert cell_is_deletable(notebook, 1)
58+
59+
remove_cells(notebook)
60+
assert len(notebook.cells) == 1 # notebook should create one automatically on empty notebook

notebook/tests/selenium/test_empty_arrows_keys.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)