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

Alternative dict form #1

Open
pedro-psb opened this issue Mar 3, 2023 · 0 comments
Open

Alternative dict form #1

pedro-psb opened this issue Mar 3, 2023 · 0 comments

Comments

@pedro-psb
Copy link

Hello!
I was looking in pytest issues for something related to more readable form of declaring @pytest.mark.parametrize, because I wanted to propose the one I wished to use.

I would issue it there, but I think it would be more appropriate to do it here. I've implemented I similiar solution, but with sligtly different form, and I think it could be merged into this plugin like so:

@pytest.mark.suite({
    "argnames": ("arg1", "arg2"),
    "test-a": ("a", "b"),
    "test-b": ("foo", "bar"),
})

This new form could be an override of the @pytest.mark.suite, so when the first arg is a dict it uses my form, otherwhise ir uses your default **kwargs form. What do you think?

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

1 participant