Skip to content

Commit

Permalink
use utf-8 symbols in 'status'
Browse files Browse the repository at this point in the history
  • Loading branch information
ussserrr committed Mar 6, 2020
1 parent 9f431b9 commit 8cc0377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stm32pio/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __str__(self):
not confuse the end-user)
"""
# Need 2 spaces between the icon and the text to look fine
return '\n'.join(f"{'' if stage_value else ''} {str(stage_name)}"
return '\n'.join(f"{'[*]' if stage_value else '[ ]'} {str(stage_name)}"
for stage_name, stage_value in self.items() if stage_name != ProjectStage.UNDEFINED)

@property
Expand Down
2 changes: 1 addition & 1 deletion stm32pio/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def test_status(self):
last_stage_pos = -1
for stage in stm32pio.lib.ProjectStage:
if stage != stm32pio.lib.ProjectStage.UNDEFINED:
match = re.search(r"^[✅❌] {2}" + str(stage) + '$', buffer_stdout.getvalue(), re.MULTILINE)
match = re.search(r"^((\[ \])|(\[\*\])) {2}" + str(stage) + '$', buffer_stdout.getvalue(), re.MULTILINE)
self.assertTrue(match, msg="Status information was not found on STDOUT")
if match:
matches_counter += 1
Expand Down

0 comments on commit 8cc0377

Please sign in to comment.