Skip to content

Commit 06dc8b7

Browse files
committed
Fixing Windows tests.
1 parent 8828598 commit 06dc8b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_dynamic_complete_style.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def app():
3434
def 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):
5255
def 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

0 commit comments

Comments
 (0)