aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/tests/test_widgets.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/prompt-toolkit/py3/tests/test_widgets.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/tests/test_widgets.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/tests/test_widgets.py36
1 files changed, 18 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
index bf89a2581e3..42dd5665479 100644
--- a/contrib/python/prompt-toolkit/py3/tests/test_widgets.py
+++ b/contrib/python/prompt-toolkit/py3/tests/test_widgets.py
@@ -1,18 +1,18 @@
-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 ]"
+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 ]"