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

Fix warning about asyncio marker in tests #1078

Merged
merged 1 commit into from Dec 30, 2022
Merged

Fix warning about asyncio marker in tests #1078

merged 1 commit into from Dec 30, 2022

Conversation

danfimov
Copy link
Contributor

Description

Made a fix to avoid asyncio marker warnings that were applied to non-asynchronous tests.

Now you do not need to put this marker in every file with asynchronous tests, as it is applied automatically.

Fix #1005

Type of change

This is just a bug fix in tests, not breaking change)

How has this been tested?

To test the fix, you can run tests and make sure there are no warnings about pytest.mark.asyncio.

Test Configuration

  • All tests run with the make test command

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes
  • My changes generate no new warnings or errors
  • My changes are compatible with minimum requirements of the project

@github-actions github-actions bot added the 2.x Issue or PR for stable 2.x version label Dec 13, 2022
@JrooTJunior JrooTJunior merged commit 64eb41d into aiogram:dev-2.x Dec 30, 2022
@danfimov danfimov deleted the fix-issue-1005 branch January 1, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue or PR for stable 2.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix pytest warnings
2 participants