Skip to content

Commit

Permalink
display full param name asyncio_default_fixture_loop_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusBiggus authored and seifertm committed Dec 6, 2024
1 parent dbf9991 commit a1cd861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog
===================
- Deprecated: Added warning when asyncio test requests async ``@pytest.fixture`` in strict mode. This will become an error in a future version of flake8-asyncio. `#979 <https://github.com/pytest-dev/pytest-asyncio/pull/979>`_
- Updates the error message about `pytest.mark.asyncio`'s `scope` keyword argument to say `loop_scope` instead. `#1004 <https://github.com/pytest-dev/pytest-asyncio/pull/1004>`_
- Verbose log displays correct parameter name: asyncio_default_fixture_loop_scope `#990 <https://github.com/pytest-dev/pytest-asyncio/pull/990>`_

0.24.0 (2024-08-22)
===================
Expand Down
4 changes: 3 additions & 1 deletion pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ def pytest_report_header(config: Config) -> list[str]:
"""Add asyncio config to pytest header."""
mode = _get_asyncio_mode(config)
default_loop_scope = config.getini("asyncio_default_fixture_loop_scope")
return [f"asyncio: mode={mode}, default_loop_scope={default_loop_scope}"]
return [
f"asyncio: mode={mode}, asyncio_default_fixture_loop_scope={default_loop_scope}"
]


def _preprocess_async_fixtures(
Expand Down

0 comments on commit a1cd861

Please sign in to comment.