Move fixture into conftests.py

This commit is contained in:
Thomas Kluyver 2018-03-28 12:33:39 +02:00
parent fc8bbb44ca
commit b49ba398c6
2 changed files with 5 additions and 7 deletions

View File

@ -9,6 +9,7 @@ import time
from urllib.parse import urljoin
from selenium.webdriver import Firefox, Remote, Chrome
from .utils import Notebook
pjoin = os.path.join
@ -114,3 +115,7 @@ def authenticated_browser(selenium_driver, notebook_server):
selenium_driver.jupyter_server_info = notebook_server
selenium_driver.get("{url}?token={token}".format(**notebook_server))
return selenium_driver
@pytest.fixture
def notebook(authenticated_browser):
return Notebook.new_notebook(authenticated_browser)

View File

@ -1,10 +1,3 @@
import pytest
from .utils import Notebook
@pytest.fixture
def notebook(authenticated_browser):
return Notebook.new_notebook(authenticated_browser)
def get_rendered_contents(nb):
cl = ["text_cell", "render"]