Skip to content

Commit

Permalink
Fix tests when plugins generate categories with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudinei Goi Roecker committed Jan 22, 2018
1 parent 770ee4f commit 05dc053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytest_mocha/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def report_replacer(self, report):
if key not in tmp_keys:
STORAGE['parents'].pop(key)

category = category.strip()
self._tw.line()
self._tw.write("{color}{indent}{icon} {text}{reset}".format(
color=COLORS[category],
Expand Down

0 comments on commit 05dc053

Please sign in to comment.