Skip to content

Commit 46f3c5f

Browse files
author
Sylvain MARIE
committed
Fixed test execution order, that was messed up by the new decorator
1 parent bdcb0f0 commit 46f3c5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytest_cases/main_fixtures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,9 @@ def wrapped_test_func(*args, **kwargs):
787787
# not needed because the __dict__ is automatically copied when we use @wraps
788788
# move_all_pytest_marks(test_func, wrapped_test_func)
789789

790+
# With this hack we will be ordered correctly by pytest https://github.com/pytest-dev/pytest/issues/4429
791+
wrapped_test_func.place_as = test_func
792+
790793
# return the new test function
791794
return wrapped_test_func
792795

0 commit comments

Comments
 (0)