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

Fixtures get called with NOT_USED as a parameter when using a fixture union #37

Closed
smarie opened this issue Apr 3, 2019 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@smarie
Copy link
Owner

smarie commented Apr 3, 2019

from pytest_cases import param_fixture, fixture_union, pytest_fixture_plus

a = param_fixture('a', ['x', 'y'])

@pytest_fixture_plus(params=[1, 2])
def b(request):
    assert request.param in [1, 2]  # this fails !
    return request.param

c = fixture_union('c', [a, b])

def test_fixture_union(c, a):
    print(c, a)
@smarie smarie added the bug Something isn't working label Apr 3, 2019
@smarie smarie closed this as completed in 6b73294 Apr 3, 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