-
Notifications
You must be signed in to change notification settings - Fork 159
Relax asyncio_mode type definition; it allows to support pytest 6.1+ #264
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bde242f
Relax asyncio_mode type definition; it allows to support pytest 5.4+
asvetlov 7cd0e6c
Fix issue number
asvetlov 1b18f03
Bump minimal supported pytest version
asvetlov 87ef797
Merge branch 'master' into relax-config-type
asvetlov cea853a
Add pytest-min config
asvetlov 9a85da9
Replace pytester with older testdir fixture
asvetlov 10c547e
Fix
asvetlov a81f87c
Fix conftest
asvetlov a92dd73
Fix required pytest version
asvetlov c150f80
Update README.rst
asvetlov 7d09fd9
Provide typing info (#260)
asvetlov c0ca686
Merge branch 'master' into relax-config-type
asvetlov bb6167c
Merge branch 'master' into relax-config-type
asvetlov 2cd678c
Restore working on pytest 6.1
asvetlov 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
import pytest | ||
|
||
pytest_plugins = "pytester" | ||
|
||
|
||
@pytest.fixture | ||
def dependent_fixture(event_loop): | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,12 +1,22 @@ | ||
[tox] | ||
minversion = 3.14.0 | ||
envlist = py37, py38, py39, py310, lint, version-info | ||
envlist = py37, py38, py39, py310, lint, version-info, pytest-min | ||
skip_missing_interpreters = true | ||
passenv = | ||
CI | ||
|
||
[testenv] | ||
extras = testing | ||
deps = | ||
pytest == 6.2.5 # required for Python 3.10, not bad for others | ||
commands = make test | ||
allowlist_externals = | ||
make | ||
|
||
[testenv:pytest-min] | ||
extras = testing | ||
deps = | ||
pytest == 6.1.0 | ||
Comment on lines
+16
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure that the plugin works with minimal requirements. |
||
commands = make test | ||
allowlist_externals = | ||
make | ||
|
@@ -37,7 +47,7 @@ commands = | |
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.7: py37, pytest-min | ||
3.8: py38 | ||
3.9: py39, lint | ||
3.10: py310 | ||
|
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.
Required for pytest 6.1 as I see. Not a big problem though, the used API is the same.