Replies: 1 comment 1 reply
-
Depending on where the marker is used, either value/type errors or a Usage Error |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently writing a pytest plugin that defines a custom marker that takes an argument and doesn't make any sense to be used without an argument. What do you recommend my plugin to do if a user omits the argument from the marker? Should it do nothing (as though the marker weren't there), or should it raise an error from inside the pytest hook that processes the marker (and, if so, what would be the best way to do that)?
Beta Was this translation helpful? Give feedback.
All reactions