Move notebook fixture to deletetest file to minimize the dependency on changes in PR #3475. This should be update once that PR is merged

This commit is contained in:
sheshtawy 2018-04-02 16:49:02 -04:00
parent 2ef45d5577
commit a47ecd4c07

View File

@ -2,6 +2,10 @@ import os
import pytest
from .utils import Notebook
@pytest.fixture
def notebook(authenticated_browser):
return Notebook.new_notebook(authenticated_browser)
def get_cells_contents(nb):
JS = 'return Jupyter.notebook.get_cells().map(function(c) {return c.get_text();})'
return nb.browser.execute_script(JS)