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 Fix colorization to not extend across newline boundary (#68517) 4 years ago
__init__.py Cleanup combine_vars 9 years ago
test_cleanup_tmp_file.py Clean up unit test boilerplate. 4 years ago
test_context_objects.py Unit test cleanup. (#60315) 5 years ago
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 ansible.utils.vars.isidentifier improvements (#58278) 4 years ago
test_shlex.py Clean up unit test boilerplate. 4 years ago
test_unsafe_proxy.py Ensure that data within a tuple is marked as unsafe (#65918) 5 years ago
test_vars.py combine filter: fine list handling (option b) (#57894) 4 years ago
test_version.py Fix SemanticVersion comparison (#69395) 4 years ago