Skip to content
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

Update pytest fixture for async functions #27

Closed
jneo8 opened this issue Dec 21, 2023 · 0 comments
Closed

Update pytest fixture for async functions #27

jneo8 opened this issue Dec 21, 2023 · 0 comments

Comments

@jneo8
Copy link
Contributor

jneo8 commented Dec 21, 2023

Starting from pytest-asyncio's most recent release (version 0.19.0), strict mode is enforced by default 1, which requires the usage of @pytest.mark.asyncio and @pytest_asyncio.fixture 2. Without these markers, tests and fixtures are not considered as asyncio-driven, resulting functional tests failures.

For charms using pytest framework, we need to update their functional tests by replacing the current used @pytest.fixture with @pytest_asyncio.fixture in test files.


Imported from Launchpad using lp2gh.

  • date created: 2022-08-02T16:34:07Z

  • owner: txiao

  • assignee: txiao

  • the launchpad url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant