Matt Clay
58bad71859
Move display internals into _internal ( #85889 )
3 months ago
Matt Davis
fa9f286096
display wrap/format arg cleanup ( #85352 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
6 months ago
Matt Davis
43c0132caa
adjust PluginInfo to use PluginType enum ( #85277 )
...
* normalization fixups
Co-authored-by: Matt Clay <matt@mystile.com>
6 months ago
Matt Clay
242bb9ebab
DTFIX recategorization and error/warning refactor ( #85181 )
...
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
7 months ago
Matt Davis
ff6998f2b9
Switch to stackwalk caller ID ( #85095 )
...
* See changelog fragment for most changes.
* Defer early config warnings until display is functioning, eliminating related fallback display logic.
* Added more type annotations and docstrings.
* ansible-test - pylint sanity for deprecations improved.
* Refactored inline legacy resolutions in PluginLoader.
Co-authored-by: Matt Clay <matt@mystile.com>
7 months ago
Matt Davis
35750ed321
Templating overhaul, implement Data Tagging ( #84621 )
...
Co-authored-by: Matt Davis <mrd@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
8 months ago
Abhijeet Kasurde
207a5fbebb
test: Handle Singleton Display class ( #83673 )
...
Fixes : #83538
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1 year ago
Matt Clay
9f899f9492
Require `from __future__ import annotations` ( #81902 )
2 years ago
Matt Clay
6627ba9ace
Unit test cleanup ( #81556 )
...
* Fix cleanup_tmp_file unit tests
* Simplify the problematic wcwidth chars unit test
2 years ago
Brian Coca
a7d2a4e032
display, also proxy warnings and deprecations ( #81060 )
...
Use generic proxy for display methods with decorator
3 years ago
Matt Martz
d8cb9117ac
Skip test if no there are no problematic chars for wcswidth ( #78645 )
3 years ago
Matt Martz
b1dd2af4ca
Preflight utf8 encodings check ( #78175 )
3 years ago
Matt Martz
5e369604e1
Forked display via queue ( #77056 )
...
* Forked Display via queue
* Docs and simple code cleanup
* Only proxy Display.display
* Remove unused import
* comment
* Update deadlock comment, remove py3 check
* Don't flush display, and don't lock from forks
* clog frag
* ci_complete ci_coverage
* Add units for queue proxying
* Cleanup flush
* ci_complete
* Only lock the write, switch to RLock
* Remove unused import
4 years ago
Matt Clay
3a9a23fb1a
Use unittest.mock instead of mock. ( #77883 )
...
This can only be done for controller tests.
4 years ago
Matt Clay
1a5853d794
Remove obsolete units.compat.mock compat layer. ( #77118 )
...
* Remove obsolete units.compat.mock compat layer.
* Update remaining units.compat.mock references.
4 years ago
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
6 years ago