Skip to content

Improve parametrization of tests #43

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

Closed
egparedes opened this issue Jul 2, 2020 · 0 comments
Closed

Improve parametrization of tests #43

egparedes opened this issue Jul 2, 2020 · 0 comments
Labels
module: tests Related to unit or integration tests wontfix This will not be worked on

Comments

@egparedes
Copy link
Contributor

As suggested be @gronerl , and according to pytest-dev/pytest#815, we could update this:

 ["name", "backend"], itertools.product(stencil_definitions.names, CPU_BACKENDS)

to this cleaner option:

@pytest.mark.parametrize("name", stencil_definitions.names)
@pytest.mark.parametrize("backend", CPU_BACKENDS)
def test_generation_cpu(name, backend):
@egparedes egparedes added the module: tests Related to unit or integration tests label Jul 2, 2020
@havogt havogt added the wontfix This will not be worked on label Nov 29, 2021
@havogt havogt closed this as completed Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: tests Related to unit or integration tests wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants