Skip to content

Enable pytest-asyncio debug mode - #603

Open
llucax wants to merge 5 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-541
Open

Enable pytest-asyncio debug mode#603
llucax wants to merge 5 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-541

Conversation

@llucax

@llucax llucax commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #541.

@llucax
llucax requested a review from a team as a code owner July 15, 2026 13:49
@llucax
llucax requested review from ela-kotulska-frequenz and removed request for a team July 15, 2026 13:49
@github-actions github-actions Bot added the part:template Affects the cookiecutter template files label Jul 15, 2026
@llucax llucax self-assigned this Jul 15, 2026
@llucax
llucax requested a review from Marenz July 15, 2026 16:26
llucax added 2 commits July 15, 2026 18:27
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Enable pytest-asyncio debug mode by default in generated non-API
repositories so tests benefit from its extra runtime checks.

Keep API repositories unchanged because they do not install
pytest-asyncio, and regenerate all affected golden fixtures.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
llucax added 3 commits July 15, 2026 18:34
Mirror the template change that enables asyncio debug mode so existing
repositories using pytest-asyncio pick it up too.

Insert the setting next to the existing asyncio mode configuration,
preserve explicit `asyncio_debug` values, and skip projects that do not
use `pytest-asyncio`. Report a manual step when the expected pytest
configuration cannot be updated safely.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:template Affects the cookiecutter template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable asyncio debug mode in tests

1 participant