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

document mark.with_args #2604

Closed
RonnyPfannschmidt opened this issue Jul 21, 2017 · 2 comments
Closed

document mark.with_args #2604

RonnyPfannschmidt opened this issue Jul 21, 2017 · 2 comments
Milestone

Comments

@RonnyPfannschmidt
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt commented Jul 21, 2017

followup to #2600 #2540

there should be a few examples of mark.with_args

@ghost
Copy link

@ghost ghost commented Aug 30, 2017

@RonnyPfannschmidt Can I work in this issue in case you haven't worked on it yet? I'll probably add a subsection before this in examples/markers.rst that will contain 2 examples demonstrating that:

  • pytest.mark.NAME.with_args is the same as pytest.mark.NAME.__call__ in most cases
  • pytest.mark.NAME.with_args allow having a callable as single positional argument while pytest.mark.NAME.__call__ doesn't.
@RonnyPfannschmidt
Copy link
Member Author

@RonnyPfannschmidt RonnyPfannschmidt commented Aug 30, 2017

@xuanluong please do - but put emphasis on that with_args is for extending the parameter set while call tries to decorate first if it can

@ghost ghost mentioned this issue Aug 31, 2017
4 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants