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

Remove slow_test pytest marker #120

Merged
merged 4 commits into from
Feb 20, 2024
Merged

Conversation

janusheide
Copy link
Contributor

Get rid of the warning emitted by pytest due to slow_test not being a registered mark.

@@ -10,6 +10,7 @@
from unittest.mock import Mock

import yaml
from pytest import mark
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use import purest please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Kludex
Copy link
Owner

Kludex commented Feb 20, 2024

Actually, how slow are those tests? Do we need this marker or can we just remove it?

@janusheide
Copy link
Contributor Author

They are not particularly slow less than ½ a second here and all the other tests are a couple of seconds combined, so I dont think that marker serves a real pupose atm.

@janusheide janusheide changed the title explicit register slow_test pytest mark to get rid of pytest warning remove slow_test pytest markers as they are not particularly slow Feb 20, 2024
@janusheide
Copy link
Contributor Author

A small note, what currently makes the tests "slow" is generating the coverage report, without it running pytest is roughly 3x faster.

@Kludex
Copy link
Owner

Kludex commented Feb 20, 2024

A small note, what currently makes the tests "slow" is generating the coverage report, without it running pytest is roughly 3x faster.

That's normal.

@Kludex Kludex changed the title remove slow_test pytest markers as they are not particularly slow Remove slow_test pytest marker Feb 20, 2024
@Kludex Kludex merged commit a0cdfd1 into Kludex:master Feb 20, 2024
6 checks passed
@Kludex
Copy link
Owner

Kludex commented Feb 20, 2024

Thanks 👍

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

Successfully merging this pull request may close these issues.

2 participants