-
Notifications
You must be signed in to change notification settings - Fork 308
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
Remove pytest11 entrypoint and plugin, require tornado 6.1, remove asyncio patch, CI work #339
Merged
Zsailer
merged 27 commits into
jupyter-server:master
from
bollwyvl:gh-337-no-entrypoint
Nov 17, 2020
Merged
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3617344
remote pytest11 entrypoint
bollwyvl ec6a9c6
try dotted import
bollwyvl f35144d
add conftest to example
bollwyvl c076f84
merge master
bollwyvl d7709fa
remove un-needed conftest.py
bollwyvl 2a3a2a0
tweak some metadata
bollwyvl b96c939
update fixtures in example
bollwyvl 933b4f5
actually use renamed fixtures
bollwyvl 20ec9ec
add some more ci trappings
bollwyvl d925e67
recursive-include to grab spec.yaml
bollwyvl fd94f12
inject server config properly
bollwyvl 3c99dff
fix workflow
bollwyvl 02579a7
collect coverage
bollwyvl 47f07a4
paramaterize (un)hidden file tests
bollwyvl ba40f81
log some more
bollwyvl d026e83
try adding winpty
bollwyvl b86e72d
fix pywinpty name
bollwyvl 631e075
rever winpty, try longer request timeouts
bollwyvl 0d0ac3c
just connect_timeout
bollwyvl 8694e53
try with unlimited connect_timeout
bollwyvl 20816c4
overload jp_fetch
bollwyvl 0e8a00f
fix imports
bollwyvl 480d6d6
try new tornado hotness
bollwyvl a0640b3
more work on removing asyncio patch
bollwyvl da0fef5
updates from review
bollwyvl e09ba05
fix minimum tornado error message
bollwyvl 2ce063a
move min tornado outside translation block
bollwyvl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest_plugins = ['jupyter_server.pytest_plugin'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pytest_plugins = ['pytest_jupyter_server'] | ||
pytest_plugins = ['jupyter_server.pytest_plugin'] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I'm confused on when this is necessary. Given these tests will depend on pytest-jupyter's
pytest_jupytercore
andpytest_jupyterserver
plugins, do consumers of those fixtures (including jupyter_server) require apytest_plugins
statement or is the extra-requires [test] dependency onpytest-jupyter
sufficient?In working with #335, it doesn't seem like this entry (referencing the now external plugins) makes any difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the
pytest11
entry point in this repo is removed, there would be no particular way for pytest to know that it should use it, it wouldn't be imported, and the issue wouldn't occur for folk that have packages installed that try to actually.load
their entrypoints.Of the seven ways a plugin can be found, if it a test dependency doesn't use number 4, i'm a big fan of being explicit in
conftest.py
(number 7) or command line (number 1), but checked in as checked in inside a file that ends up in the distribution, e.g.pyproject.toml
, orsetup.cfg
rather than rely on env vars, switches, etc.Once it's an explicit, real dependency, on a dedicated, test-time package, then everything is cool, and no
pytest_plugin
variable will be required, as number 4 will take care of it.So generally: you'd never want anything referenced by Other People's Entry Points (what you might not control) to be behind an
extra
... depending on how they are used (e.g. have to be actually imported).The whole prefix thing from #335? Yeah, well, that's just what a test regume is buying into with magic named functions. I'm not a huge fan, as the pattern (which, luckily, seems to be rather unique) doesn't play nice-nice with other tools (e.g. mypy, etc). But it's the only game in town, aside from the few little ecosystems where they felt they had to home-roll their own thing...
noflo
,robotframework
, etc. have extremely unpythonic things they do, in the name of specific purposes.