Removed unnecessary property attibute created in utils.py and added comments to test_merge_cells.py

pull/4182/head
Andres Sanchez 8 years ago
parent 1c87821dc1
commit fd6ea8e556

@ -11,7 +11,7 @@ def test_merge_cells(notebook):
notebook.edit_cell(index=0, content=a)
notebook.append(b, c, d, e, f)
# Before merging, there are 4 separate cells
# Before merging, there are 6 separate cells
assert notebook.get_cells_contents() == [a, b, c, d, e, f]
# Focus on the second cell and merge it with the cell above
@ -26,7 +26,7 @@ def test_merge_cells(notebook):
merged_c_d = "%s\n\n%s" % (c, d)
assert notebook.get_cells_contents() == [merged_a_b, merged_c_d, e, f]
# Merge everything down to a single cell
# Merge everything down to a single cell with selected cells
notebook.select_command_lines(0,3)
notebook.browser.execute_script("Jupyter.notebook.merge_selected_cells();")
merged_all = "%s\n\n%s\n\n%s\n\n%s" % (merged_a_b, merged_c_d, e, f)

@ -70,13 +70,6 @@ class Notebook:
"""
return self.browser.find_elements_by_class_name("cell")
@property
def inputs(self):
"""Gets all inputs once they are visible.
"""
return self.browser.find_elements_by_class_name("input")
@property
def current_index(self):
return self.index(self.current_cell)

Loading…
Cancel
Save