You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/utils
Matt Martz 1fedb95e4b
Use libc wcwidth to calculate print width in display (#66214)
* Use libc wcwidth to calculate print width in display. Fixes #63105

* Remove errantly added blank lines

* Fixes

* Move setlocale, adjust tests to work around py2 oddity with characters following null

* Don't change cli stub

* emojis

* Remove to_text call

* Special accounting for deletions

* Add initialization function, expand tests, ensure fallback to len

* get_text_width requires text, ensure banner deals with it

* Handle setlocale errors

* Move variable decrement

* Remove unused import
4 years ago
..
collection_loader Clean up unit test boilerplate. 4 years ago
display
__init__.py
test_cleanup_tmp_file.py Clean up unit test boilerplate. 4 years ago
test_context_objects.py
test_display.py Use libc wcwidth to calculate print width in display (#66214) 4 years ago
test_encrypt.py Clean up unit test boilerplate. 4 years ago
test_helpers.py Clean up unit test boilerplate. 4 years ago
test_isidentifier.py
test_shlex.py Clean up unit test boilerplate. 4 years ago
test_unsafe_proxy.py
test_vars.py
test_version.py