Skip to content

Commit 5c57a45

Browse files
authored
Set COLUMNS env var for cli tests (#1762)
1 parent 28e11b7 commit 5c57a45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_agent_flag(
6363
create_test_module: Callable[..., None],
6464
):
6565
env.remove('OPENAI_API_KEY')
66+
env.set('COLUMNS', '150')
6667

6768
test_agent = Agent(TestModel(custom_output_text='Hello from custom agent'))
6869
create_test_module(custom_agent=test_agent)
@@ -98,6 +99,7 @@ def test_agent_flag_set_model(
9899
create_test_module: Callable[..., None],
99100
):
100101
env.set('OPENAI_API_KEY', 'xxx')
102+
env.set('COLUMNS', '150')
101103

102104
custom_agent = Agent(TestModel(custom_output_text='Hello from custom agent'))
103105
create_test_module(custom_agent=custom_agent)

0 commit comments

Comments
 (0)