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

Enable header overrides in jp_ws_fetch fixture #51

Merged

Conversation

kevin-bates
Copy link
Member

Unlike the jp_fetch fixture, there was no way to override the addition of the Authorization header in the jp_ws_fetch fixture. This pull request brings jp_ws_fetch's "header functionality" in line with jp_fetch's so that tests can set a different Authorization header over what is provided by the jp_auth_header fixture.

@kevin-bates kevin-bates added the enhancement New feature or request label Mar 29, 2023
@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (f53e1b7) 94.34% compared to head (bdff4f1) 94.35%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
+ Coverage   94.34%   94.35%   +0.01%     
==========================================
  Files          12       12              
  Lines         513      514       +1     
==========================================
+ Hits          484      485       +1     
  Misses         29       29              
Impacted Files Coverage Δ
pytest_jupyter/jupyter_server.py 92.85% <100.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Zsailer
Copy link
Member

Zsailer commented Mar 29, 2023

Thanks, @kevin-bates! LGTM!

@Zsailer Zsailer merged commit f874ec6 into jupyter-server:main Mar 29, 2023
@kevin-bates kevin-bates deleted the jp-ws-fetch-header-overrides branch March 30, 2023 14:53
@kevin-bates
Copy link
Member Author

@Zsailer or @blink1073 - would it be possible to build a release to grab this update? I can follow the instructions on RELEASE.md if they're current and do the release if that helps.

@blink1073
Copy link
Contributor

Go for it! The instructions look to be up to date.

krassowski added a commit to krassowski/jupyter_server that referenced this pull request Feb 20, 2024
enabled `jp_ws_fetch` header override in:
gttps://github.com/jupyter-server/pytest-jupyter/pull/51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants