Skip to content

Commit

Permalink
Backport jupyterlab#13515
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Nov 30, 2022
1 parent 1bc7356 commit fe7c9ec
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 @@ -93,7 +93,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={}, params={}, **kwargs):
Expand All @@ -105,6 +105,6 @@ def client_fetch(*parts, headers={}, params={}, **kwargs):
# Add auth keys to header
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 setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test =
pytest-cov
pytest-console-scripts
pytest-check-links>=0.5
pytest-jupyter
pytest-jupyter>=0.5.3
requests
requests_cache
virtualenv
Expand Down

0 comments on commit fe7c9ec

Please sign in to comment.