diff options
author | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/prompt-toolkit/py3/tests/test_widgets.py | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz |
fix ya.make
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/tests/test_widgets.py')
-rw-r--r-- | contrib/python/prompt-toolkit/py3/tests/test_widgets.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/python/prompt-toolkit/py3/tests/test_widgets.py b/contrib/python/prompt-toolkit/py3/tests/test_widgets.py deleted file mode 100644 index bf89a2581e3..00000000000 --- a/contrib/python/prompt-toolkit/py3/tests/test_widgets.py +++ /dev/null @@ -1,18 +0,0 @@ -from prompt_toolkit.formatted_text import fragment_list_to_text -from prompt_toolkit.layout import to_window -from prompt_toolkit.widgets import Button - - -def _to_text(button: Button) -> str: - control = to_window(button).content - return fragment_list_to_text(control.text()) - - -def test_defaulf_button(): - button = Button("Exit") - assert _to_text(button) == "< Exit >" - - -def test_custom_button(): - button = Button("Exit", left_symbol="[", right_symbol="]") - assert _to_text(button) == "[ Exit ]" |