Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for pytest-jupyter 0.5.2+ #13515

Merged
merged 1 commit into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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