mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Move fixture into conftests.py
This commit is contained in:
parent
fc8bbb44ca
commit
b49ba398c6
@ -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)
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user