Skip to content

Commit e34718e

Browse files
author
Sylvain MARIE
committed
Added test checking that cases can be parametrized with cases. Fixes #158
1 parent 43b6e2d commit e34718e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest_cases
2+
3+
4+
def case_x():
5+
return 42
6+
7+
8+
@pytest_cases.parametrize_with_cases("x", case_x)
9+
def case_y(x):
10+
return 3*x + 2
11+
12+
13+
@pytest_cases.parametrize_with_cases("y", case_y)
14+
def test_foo(y):
15+
print(y)

0 commit comments

Comments
 (0)