Skip to content

Commit

Permalink
Fix for pytest-jupyter 0.5.2+ (#13515)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Nov 30, 2022
1 parent 168a53d commit 7e4917e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jupyterlab/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def labapp(jp_serverapp, make_lab_app):


@pytest.fixture
def fetch_long(jp_http_server_client, jp_auth_header, jp_base_url):
def fetch_long(http_server_client, jp_auth_header, jp_base_url):
"""fetch fixture that handles auth, base_url, and path"""

def client_fetch(*parts, headers=None, params=None, **kwargs):
Expand All @@ -109,6 +109,6 @@ def client_fetch(*parts, headers=None, params=None, **kwargs):
headers = headers or {}
headers.update(jp_auth_header)
# Make request.
return jp_http_server_client.fetch(url, headers=headers, request_timeout=250, **kwargs)
return http_server_client.fetch(url, headers=headers, request_timeout=250, **kwargs)

return client_fetch
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ test = [
"pytest-check-links>=0.7",
"pytest-console-scripts",
"pytest-cov",
"pytest-jupyter",
"pytest-jupyter>=0.5.3",
"pytest-timeout",
"pytest-tornasync",
"requests",
Expand Down

0 comments on commit 7e4917e

Please sign in to comment.