Skip to content

Commit

Permalink
fix suite label (fixes allure-framework#406 via allure-framework#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
sseliverstov authored Sep 4, 2019
1 parent e62cea8 commit 4a242a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions allure-pytest/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def allure_suite_labels(item):
pairs = dict(zip([LabelType.PARENT_SUITE, LabelType.SUITE, LabelType.SUB_SUITE], [package, module, clazz]))
labels = dict(allure_labels(item))
default_suite_labels = []
for suite_label in pairs.keys():
if suite_label not in labels.keys():
default_suite_labels.append((suite_label, pairs[suite_label]))
for label, value in pairs.items():
if label not in labels.keys() and value:
default_suite_labels.append((label, value))

return default_suite_labels

Expand Down

0 comments on commit 4a242a4

Please sign in to comment.