Skip to content

Commit b25c233

Browse files
author
Sylvain MARIE
committed
Added test for #158
1 parent 75f2b44 commit b25c233

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
assert y == 128
16+
17+
18+
def test_synthesis(module_results_dct):
19+
assert list(module_results_dct) == [
20+
'test_foo[y-x]'
21+
]

0 commit comments

Comments
 (0)