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

Issues when parametrize argnames contains a list #49

Closed
smarie opened this issue Jun 27, 2019 · 1 comment
Closed

Issues when parametrize argnames contains a list #49

smarie opened this issue Jun 27, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@smarie
Copy link
Owner

smarie commented Jun 27, 2019

IndexError: list index out of range or AttributeError: 'list' object has no attribute 'replace' can happen even with normal pytest parametrize when argnames contains a list/tuple.

@smarie smarie added the bug Something isn't working label Jun 27, 2019
@smarie
Copy link
Owner Author

smarie commented Jun 27, 2019

For example this fails :

import pytest
from pytest_cases import pytest_fixture_plus


@pytest_fixture_plus
@pytest.mark.parametrize(['c', 'd'], [(0, 0), (1, 1)])
def f(c, d):
    pass

@pytest.mark.parametrize(['a', 'b'], [(0, 0), (1, 1)])
def test_dummy(a, b, f):
    pass

@smarie smarie closed this as completed in e15da3b Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant