diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-01-08 17:11:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 17:11:17 -0500 |
commit | db093b630ed487838337a04a28af79475d37d1e0 (patch) | |
tree | d78cd5fcbb4946206377a162bbcb3b7c01576d15 /tests/test_utils.py | |
parent | 97dd6f37482510cfc424049ff0b0369b79e34335 (diff) | |
parent | 383853ee92f69c3e4ccadacd34e0f22e1e896345 (diff) | |
download | cmd2-git-db093b630ed487838337a04a28af79475d37d1e0.tar.gz |
Merge pull request #843 from python-cmd2/ansi_to_style
ansi to style
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 27b0e3bb..b5231172 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -349,7 +349,7 @@ def test_align_text_term_width(): fill_char = ' ' term_width = shutil.get_terminal_size().columns - expected_fill = (term_width - ansi.ansi_safe_wcswidth(text)) * fill_char + expected_fill = (term_width - ansi.style_aware_wcswidth(text)) * fill_char aligned = cu.align_text(text, fill_char=fill_char, alignment=cu.TextAlignment.LEFT) assert aligned == text + expected_fill |