Skip to content

Commit

Permalink
1.2.1 Fixed id of test cases with marks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Feb 1, 2019
1 parent 10a3adb commit 6a5c196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.2.1 - fixed id of test cases with marks

Id of test cases with marks was appearing as `ParameterSet`. Fixed it.

### 1.2.0 - @pytest.mark can be used on cases + @pytest_fixture_plus parametrization order bugfix

Pytest marks such as `@pytest.mark.skipif` can now be used on case functions. As a consequence, `get_all_cases` is now the recommended function to use instead of `extract_cases_from_module` to perform manual collection. Indeed `get_all_cases` correctly prepares the resulting parameters list so that pytest sees the marks. Fixed [#21](https://github.com/smarie/python-pytest-cases/issues/21)
Expand Down
2 changes: 1 addition & 1 deletion pytest_cases/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def datasets_decorator(test_func):
try:
_ = pytest.param
def get_marked_parameter_for_case(c, marks):
return pytest.param(c, marks=marks)
return pytest.param(c, marks=marks, id=str(c))
except AttributeError:
def get_marked_parameter_for_case(c, marks):
if len(marks) > 1:
Expand Down

0 comments on commit 6a5c196

Please sign in to comment.