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

Dynamic mark addition (e.g., +SLOW) #194

Open
dboeckenhoff opened this issue Feb 24, 2023 · 2 comments
Open

Dynamic mark addition (e.g., +SLOW) #194

dboeckenhoff opened this issue Feb 24, 2023 · 2 comments

Comments

@dboeckenhoff
Copy link

It would be great, if self-defined marks like --slow from user defined parser.addoption in conftest.py could be added as doctest skip "+SLOW" also like "+REMOTE_DATA". This would generalize the remote-data option.

@pllim
Copy link
Contributor

pllim commented Feb 24, 2023

Generally I avoid writing doc example that would be slow in the first place. But I guess sometimes that is unavoidable?

The dynamic part might be tricky but then again I am not expert in the internals here, so you are welcome to take a stab at it if you want. Thanks!

@pllim pllim changed the title Dynamik mark addition Dynamic mark addition (e.g., +SLOW) Feb 24, 2023
@dboeckenhoff
Copy link
Author

Usually the reason to avoid it is, that it is included in tests. Usually you would also want to avoid remote data acces. Isn't that the exact point of this plugin? For now I work with a mock function for the test but it might be something I will go into once I have more incentive. 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

No branches or pull requests

2 participants