-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues when parametrize argnames contains a list. Fixed #49
Added corresponding test. New util method `get_param_argnames_as_list` used everywhere.
- Loading branch information
Sylvain MARIE
committed
Jun 27, 2019
1 parent
af50566
commit e15da3b
Showing
4 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 | ||
|
||
|
||
def test_synthesis(module_results_dct): | ||
assert list(module_results_dct) == ["test_dummy[0-0-0-0]", | ||
"test_dummy[0-0-1-1]", | ||
"test_dummy[1-1-0-0]", | ||
"test_dummy[1-1-1-1]"] |