Skip to content

Commit

Permalink
Fixture names generated by @pytest_fixture_plus now follow the patt…
Browse files Browse the repository at this point in the history
…ern `<fixturename>__<paramname>`.

Fixed #20
  • Loading branch information
smarie committed Jan 8, 2019
1 parent 716f139 commit ad9a9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_cases/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def _param_fixture(request):
return request.param

# generate a fixture name (find an available name if already used)
gen_name = "gen_paramfixture__" + fixture_func.__name__ + "__" + 'X'.join(m.param_names)
gen_name = fixture_func.__name__ + "__" + 'X'.join(m.param_names) # + "__gen"
i = 0
_param_fixture.__name__ = gen_name
while _param_fixture.__name__ in dir(module):
Expand Down

0 comments on commit ad9a9dc

Please sign in to comment.