@@ -77,7 +77,7 @@ def test_autocomp_flags(cmd2_app):
7777
7878 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
7979 assert first_match is not None and \
80- cmd2_app .completion_matches == ['--duration' , '--help' , '--type' , '-d' , '-h' , '-t' ]
80+ cmd2_app ._completion_matches == ['--duration' , '--help' , '--type' , '-d' , '-h' , '-t' ]
8181
8282def test_autcomp_hint (cmd2_app , capsys ):
8383 text = ''
@@ -106,7 +106,7 @@ def test_autcomp_flag_comp(cmd2_app, capsys):
106106 out , err = capsys .readouterr ()
107107
108108 assert first_match is not None and \
109- cmd2_app .completion_matches == ['--duration ' ]
109+ cmd2_app ._completion_matches == ['--duration ' ]
110110
111111
112112def test_autocomp_flags_choices (cmd2_app ):
@@ -117,7 +117,7 @@ def test_autocomp_flags_choices(cmd2_app):
117117
118118 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
119119 assert first_match is not None and \
120- cmd2_app .completion_matches == ['movie' , 'show' ]
120+ cmd2_app ._completion_matches == ['movie' , 'show' ]
121121
122122
123123def test_autcomp_hint_in_narg_range (cmd2_app , capsys ):
@@ -160,7 +160,7 @@ def test_autocomp_subcmd_nested(cmd2_app):
160160
161161 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
162162 assert first_match is not None and \
163- cmd2_app .completion_matches == ['add' , 'delete' , 'list' , 'load' ]
163+ cmd2_app ._completion_matches == ['add' , 'delete' , 'list' , 'load' ]
164164
165165
166166def test_autocomp_subcmd_flag_choices_append (cmd2_app ):
@@ -171,7 +171,7 @@ def test_autocomp_subcmd_flag_choices_append(cmd2_app):
171171
172172 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
173173 assert first_match is not None and \
174- cmd2_app .completion_matches == ['G' , 'NC-17' , 'PG' , 'PG-13' , 'R' ]
174+ cmd2_app ._completion_matches == ['G' , 'NC-17' , 'PG' , 'PG-13' , 'R' ]
175175
176176def test_autocomp_subcmd_flag_choices_append_exclude (cmd2_app ):
177177 text = ''
@@ -181,7 +181,7 @@ def test_autocomp_subcmd_flag_choices_append_exclude(cmd2_app):
181181
182182 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
183183 assert first_match is not None and \
184- cmd2_app .completion_matches == ['G' , 'NC-17' , 'R' ]
184+ cmd2_app ._completion_matches == ['G' , 'NC-17' , 'R' ]
185185
186186
187187def test_autocomp_subcmd_flag_comp_func (cmd2_app ):
@@ -192,7 +192,7 @@ def test_autocomp_subcmd_flag_comp_func(cmd2_app):
192192
193193 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
194194 assert first_match is not None and \
195- cmd2_app .completion_matches == ['Adam Driver' , 'Alec Guinness' , 'Andy Serkis' , 'Anthony Daniels' ]
195+ cmd2_app ._completion_matches == ['Adam Driver' , 'Alec Guinness' , 'Andy Serkis' , 'Anthony Daniels' ]
196196
197197
198198def test_autocomp_subcmd_flag_comp_list (cmd2_app ):
@@ -213,7 +213,7 @@ def test_autocomp_subcmd_flag_comp_func_attr(cmd2_app):
213213
214214 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
215215 assert first_match is not None and \
216- cmd2_app .completion_matches == ['Adam Driver' , 'Alec Guinness' , 'Andy Serkis' , 'Anthony Daniels' ]
216+ cmd2_app ._completion_matches == ['Adam Driver' , 'Alec Guinness' , 'Andy Serkis' , 'Anthony Daniels' ]
217217
218218
219219def test_autocomp_subcmd_flag_comp_list_attr (cmd2_app ):
@@ -244,7 +244,7 @@ def test_autocomp_pos_after_flag(cmd2_app):
244244
245245 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
246246 assert first_match is not None and \
247- cmd2_app .completion_matches == ['John Boyega" ' ]
247+ cmd2_app ._completion_matches == ['John Boyega" ' ]
248248
249249
250250def test_autocomp_custom_func_list_arg (cmd2_app ):
@@ -255,7 +255,7 @@ def test_autocomp_custom_func_list_arg(cmd2_app):
255255
256256 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
257257 assert first_match is not None and \
258- cmd2_app .completion_matches == ['SW_CW' , 'SW_REB' , 'SW_TCW' ]
258+ cmd2_app ._completion_matches == ['SW_CW' , 'SW_REB' , 'SW_TCW' ]
259259
260260
261261def test_autocomp_custom_func_list_and_dict_arg (cmd2_app ):
@@ -266,7 +266,7 @@ def test_autocomp_custom_func_list_and_dict_arg(cmd2_app):
266266
267267 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
268268 assert first_match is not None and \
269- cmd2_app .completion_matches == ['S01E02' , 'S01E03' , 'S02E01' , 'S02E03' ]
269+ cmd2_app ._completion_matches == ['S01E02' , 'S01E03' , 'S02E01' , 'S02E03' ]
270270
271271
272272def test_autocomp_custom_func_dict_arg (cmd2_app ):
@@ -277,7 +277,7 @@ def test_autocomp_custom_func_dict_arg(cmd2_app):
277277
278278 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
279279 assert first_match is not None and \
280- cmd2_app .completion_matches == ['/home/user/another.db' , '/home/user/file space.db' , '/home/user/file.db' ]
280+ cmd2_app ._completion_matches == ['/home/user/another.db' , '/home/user/file space.db' , '/home/user/file.db' ]
281281
282282
283283def test_argparse_remainder_flag_completion (cmd2_app ):
@@ -333,7 +333,7 @@ def test_completion_after_double_dash(cmd2_app):
333333
334334 # Since -- is the last token, then it should show flag choices
335335 first_match = complete_tester (text , line , begidx , endidx , cmd2_app )
336- assert first_match is not None and '--help' in cmd2_app .completion_matches
336+ assert first_match is not None and '--help' in cmd2_app ._completion_matches
337337
338338 # Test -- to end all flag completion
339339 text = '--'
0 commit comments