-
Notifications
You must be signed in to change notification settings - Fork 24
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
Restructure pytest plugin hooks #91
Merged
Merged
Changes from 18 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
df93015
Show dependent async fixture failures
cdunklau 61acd1a
Also test with normal fixture-produced functions
cdunklau bf0338f
Add simpler tests that still reproduce the issue
cdunklau fe21efc
embarrassingly passing tests
altendky 74b152a
fixes for py2
altendky a82752e
Add pytest_unconfigure() to call stop_twisted_greenlet()
altendky eaebd84
uncomment stop_twisted_greenlet()
altendky cd07b11
cleanup for linting
altendky 25fa4aa
basic cleanup
altendky 408a9ce
simplify marking
altendky b10cfd3
deCAMP
altendky bcf7114
move globals into class for consistency
altendky d5249c1
remove implemented todo
altendky 72dd6ad
remove debugging change
altendky 150764c
remove unneeded fixture
altendky 3a3900f
docstrings and... :[
altendky 9f0c454
add test for (and stop blocking) module scope fixtures
altendky a953003
remove commented out lines in new test
altendky c93ea0a
Clarify # TODO: what about _adding_ inlineCallbacks fixture support?
altendky 7de9416
Add complaining TODO: about pytest_twisted.inlineCallbacks
altendky b8a2a5c
@inlineCallbacks/@ensureDeferred mark, pytest_pyfunc_call processes
altendky 1c89ee2
some more docstrings
altendky 7fcb132
Link to #56 for later expansion of fixture scope support
altendky a37adec
Merge branch 'master' into ayfif
altendky c505e50
Merge branch 'master' into ayfif
altendky 94fb2a3
document difference between @inlineCallbacks @ensureDeferred approach
altendky 50983ee
use pytest's request.addfinalizer() to schedule async yield fixture t…
altendky e82be78
docstring for _async_yield_pytest_fixture_finalizer
altendky 93e6283
merge _async_yield_pytest_fixture_finalizer() and tear_it_down()
altendky d654790
update readme for async/await module scope support
altendky 82c1a02
Merge branch 'master' into ayfif
altendky e3a568c
restore the concurrent teardown for now
altendky c040467
Merge branch 'master' into ayfif
altendky 86490c5
Comment out potential future-use variables
altendky 5260811
ugh
altendky 5b4736a
wow
altendky fbc1ce8
Merge branch 'master' into ayfif
altendky 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
Oops, something went wrong.
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.
Maybe I'm not following the code exactly, but the
maybeDeferred
inin_reactor
later on should handle that, I think? (referring to the "TODO" comment)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.
And this is why I need these todo's so I come back and get a clue...
:|
I was thinking there wereinlineCallbacks
fixtures and they ought to be handled here too. There aren't. *smh* and such. Thanks.Though, seems like they could be implemented (after 30 seconds of thought anyways). Add a decorator to mark them and intercept them here for setup before pytest gets confused by them.