File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ def app():
3434def test_dynamic_complete_style (app ):
3535 # Cmd.complete() interacts with app.active_session.
3636 # Set it here since it's normally set when the prompt is created.
37- app .active_session : PromptSession [str ] = PromptSession ()
37+ app .active_session : PromptSession [str ] = PromptSession (
38+ input = app .main_session .input ,
39+ output = app .main_session .output ,
40+ )
3841
3942 # Default max_column_completion_results is 7
4043 assert app .max_column_completion_results == 7
@@ -52,7 +55,10 @@ def test_dynamic_complete_style(app):
5255def test_dynamic_complete_style_custom_limit (app ):
5356 # Cmd.complete() interacts with app.active_session.
5457 # Set it here since it's normally set when the prompt is created.
55- app .active_session : PromptSession [str ] = PromptSession ()
58+ app .active_session : PromptSession [str ] = PromptSession (
59+ input = app .main_session .input ,
60+ output = app .main_session .output ,
61+ )
5662
5763 # Change limit to 3
5864 app .max_column_completion_results = 3
You can’t perform that action at this time.
0 commit comments