-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add support for markers in doctests #5794
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
Comments
I second this. For example, I'd like to mark a doctest as |
I third this. I work for SUSE and our package build environments are isolated from network (the same goes from obvious reasons for all package distributions, Linux or not), so it is quite common to mark some tests as Something like this would be very helpful: >>> Image('http://www.google.fr/images/srpr/logo3w.png') # doctest: +pytest.mark.network as a parallel of |
I'm particularly 👎 on adding extra functionality to the doctests plugin that does not mirror a functionality in the standard library. I also don't find it appealing to use pytest functionality ( |
I am glad you have your own idea how to do it. Please, do share! |
Oh but I don't, sorry if I wasn't clear. |
+1 I use doctests for all the examples in the documentation for python-statemachine. Some examples generate diagrams on disk. I want to skip those doctests and run them only before generating the documentation pages. |
It would be useful if also classes / methods / functions with doctests could be marked:
and then selected
$ pytest -m custom_marker
The text was updated successfully, but these errors were encountered: