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

Comments

Projects
None yet
3 participants
@RonnyPfannschmidt
Member

RonnyPfannschmidt commented Jul 21, 2017

followup to #2600 #2540

there should be a few examples of mark.with_args

@xuanluong

This comment has been minimized.

Contributor

xuanluong 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

This comment has been minimized.

Member

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

@xuanluong xuanluong referenced this issue Aug 31, 2017

Merged

[DOC] Add examples for mark.with_args #2736

4 of 4 tasks complete

@pyup-bot pyup-bot referenced this issue Jan 24, 2018

Closed

Initial Update #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment