@@ -78,8 +78,8 @@ def test_exit_popup_no(
78
78
self .callback .assert_not_called ()
79
79
assert self .controller .exit_popup .called
80
80
81
- @pytest .mark .parametrize ("key" , keys_for_command ("GO_BACK " ))
82
- def test_exit_popup_GO_BACK (
81
+ @pytest .mark .parametrize ("key" , keys_for_command ("EXIT_POPUP " ))
82
+ def test_exit_popup_EXIT_POPUP (
83
83
self ,
84
84
popup_view : PopUpConfirmationView ,
85
85
key : str ,
@@ -133,8 +133,8 @@ def test_init(self, mocker: MockerFixture) -> None:
133
133
self .pop_up_view .body , header = mocker .ANY , footer = mocker .ANY
134
134
)
135
135
136
- @pytest .mark .parametrize ("key" , keys_for_command ("GO_BACK " ))
137
- def test_keypress_GO_BACK (
136
+ @pytest .mark .parametrize ("key" , keys_for_command ("EXIT_POPUP " ))
137
+ def test_keypress_EXIT_POPUP (
138
138
self ,
139
139
key : str ,
140
140
widget_size : Callable [[Widget ], urwid_Size ],
@@ -204,7 +204,7 @@ def mock_external_classes(self, mocker: MockerFixture) -> None:
204
204
)
205
205
206
206
@pytest .mark .parametrize (
207
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("ABOUT" )}
207
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("ABOUT" )}
208
208
)
209
209
def test_keypress_exit_popup (
210
210
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -432,7 +432,7 @@ def test__fetch_user_data_USER_NOT_FOUND(self, mocker: MockerFixture) -> None:
432
432
assert custom_profile_data == {}
433
433
434
434
@pytest .mark .parametrize (
435
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("USER_INFO" )}
435
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("USER_INFO" )}
436
436
)
437
437
def test_keypress_exit_popup (
438
438
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -505,7 +505,7 @@ def test_keypress_exit_popup_invalid_key(
505
505
"key" ,
506
506
{
507
507
* keys_for_command ("FULL_RENDERED_MESSAGE" ),
508
- * keys_for_command ("GO_BACK " ),
508
+ * keys_for_command ("EXIT_POPUP " ),
509
509
},
510
510
)
511
511
def test_keypress_show_msg_info (
@@ -581,7 +581,7 @@ def test_keypress_exit_popup_invalid_key(
581
581
"key" ,
582
582
{
583
583
* keys_for_command ("FULL_RAW_MESSAGE" ),
584
- * keys_for_command ("GO_BACK " ),
584
+ * keys_for_command ("EXIT_POPUP " ),
585
585
},
586
586
)
587
587
def test_keypress_show_msg_info (
@@ -653,7 +653,7 @@ def test_keypress_exit_popup_invalid_key(
653
653
assert not self .controller .exit_popup .called
654
654
655
655
@pytest .mark .parametrize (
656
- "key" , {* keys_for_command ("EDIT_HISTORY" ), * keys_for_command ("GO_BACK " )}
656
+ "key" , {* keys_for_command ("EDIT_HISTORY" ), * keys_for_command ("EXIT_POPUP " )}
657
657
)
658
658
def test_keypress_show_msg_info (
659
659
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -876,7 +876,7 @@ def test_keypress_any_key(
876
876
assert not self .controller .exit_popup .called
877
877
878
878
@pytest .mark .parametrize (
879
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("MARKDOWN_HELP" )}
879
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("MARKDOWN_HELP" )}
880
880
)
881
881
def test_keypress_exit_popup (
882
882
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -907,7 +907,7 @@ def test_keypress_any_key(
907
907
assert not self .controller .exit_popup .called
908
908
909
909
@pytest .mark .parametrize (
910
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("HELP" )}
910
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("HELP" )}
911
911
)
912
912
def test_keypress_exit_popup (
913
913
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -1078,7 +1078,7 @@ def test_keypress_full_raw_message(
1078
1078
)
1079
1079
1080
1080
@pytest .mark .parametrize (
1081
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("MSG_INFO" )}
1081
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("MSG_INFO" )}
1082
1082
)
1083
1083
def test_keypress_exit_popup (
1084
1084
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -1514,7 +1514,7 @@ def test_footlinks(
1514
1514
assert footlinks_width == expected_footlinks_width
1515
1515
1516
1516
@pytest .mark .parametrize (
1517
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("STREAM_INFO" )}
1517
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("STREAM_INFO" )}
1518
1518
)
1519
1519
def test_keypress_exit_popup (
1520
1520
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -1579,7 +1579,7 @@ def mock_external_classes(self, mocker: MockerFixture) -> None:
1579
1579
self .stream_members_view = StreamMembersView (self .controller , stream_id )
1580
1580
1581
1581
@pytest .mark .parametrize (
1582
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("STREAM_MEMBERS" )}
1582
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("STREAM_MEMBERS" )}
1583
1583
)
1584
1584
def test_keypress_exit_popup (
1585
1585
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
@@ -1694,7 +1694,7 @@ def test_keypress_search_emoji(
1694
1694
assert self .emoji_picker_view .get_focus () == "header"
1695
1695
1696
1696
@pytest .mark .parametrize (
1697
- "key" , {* keys_for_command ("GO_BACK " ), * keys_for_command ("ADD_REACTION" )}
1697
+ "key" , {* keys_for_command ("EXIT_POPUP " ), * keys_for_command ("ADD_REACTION" )}
1698
1698
)
1699
1699
def test_keypress_exit_called (
1700
1700
self , key : str , widget_size : Callable [[Widget ], urwid_Size ]
0 commit comments