Skip to content

Commit ea5b9e0

Browse files
author
Sylvain MARIE
committed
Minor: MiniMetafunc preserves the order of required fixtures
1 parent f6d36c0 commit ea5b9e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_cases/common_pytest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ def __init__(self, func):
554554
self.pmarks = get_pytest_parametrize_marks(self.function)
555555
if self.is_parametrized:
556556
self.update_callspecs()
557-
self.required_fixtures = set(self.fixturenames) - set(self._calls[0].funcargs)
557+
# preserve order
558+
self.required_fixtures = tuple(f for f in self.fixturenames if f not in self._calls[0].funcargs)
558559
else:
559560
self.required_fixtures = self.fixturenames
560561

0 commit comments

Comments
 (0)