-
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.
A case id can now be a reserved keyword without triggering any `Synta…
…xError`, even if the case is transformed into a fixture. Fixes #230
- Loading branch information
Sylvain MARIE
committed
Sep 17, 2021
1 parent
d858f6b
commit 18fa41d
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pytest_cases import parametrize_with_cases | ||
|
||
|
||
class FooCases: | ||
|
||
def case_None(self, tmpdir): | ||
return 1 | ||
|
||
def case_True(self, tmpdir): | ||
return 1 | ||
|
||
def case_False(self, tmpdir): | ||
return 1 | ||
|
||
|
||
@parametrize_with_cases("foo", cases=FooCases) | ||
def test_issue_230(foo): | ||
pass |