This commit is contained in:
Ronny Pfannschmidt 2018-06-26 21:56:00 +02:00
parent b8486037d3
commit 643e5a9c44
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
unpack marks from parameterization to prevent the markdecorator missmatch bug. no longer ValueError when using the ``get_marker`` api.

View File

@ -231,6 +231,12 @@ def get_unpacked_marks(obj):
def normalize_mark_list(mark_list): def normalize_mark_list(mark_list):
"""
normalizes marker decorating helpers to mark objects
:type mark_list: List[Union[Mark, Markdecorator]]
:rtype: List[Mark]
"""
return [getattr(mark, "mark", mark) for mark in mark_list] # unpack MarkDecorator return [getattr(mark, "mark", mark) for mark in mark_list] # unpack MarkDecorator