summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-01-08 17:11:17 -0500
committerGitHub <noreply@github.com>2020-01-08 17:11:17 -0500
commitdb093b630ed487838337a04a28af79475d37d1e0 (patch)
treed78cd5fcbb4946206377a162bbcb3b7c01576d15 /tests/test_utils.py
parent97dd6f37482510cfc424049ff0b0369b79e34335 (diff)
parent383853ee92f69c3e4ccadacd34e0f22e1e896345 (diff)
downloadcmd2-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.py2
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