Capture the stderr summary in the request-preview tests
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -188,7 +188,8 @@ class TestRequestBuilding(RunLLMTestCase):
|
|||||||
:return: The parsed request.
|
:return: The parsed request.
|
||||||
"""
|
"""
|
||||||
stdout: io.StringIO = io.StringIO()
|
stdout: io.StringIO = io.StringIO()
|
||||||
with redirect_stdout(stdout):
|
stderr: io.StringIO = io.StringIO()
|
||||||
|
with redirect_stdout(stdout), redirect_stderr(stderr):
|
||||||
run_llm.main([
|
run_llm.main([
|
||||||
str(self.__prompt), str(self.__input),
|
str(self.__prompt), str(self.__input),
|
||||||
str(self.__archive_dir), "--dry-run"] + extra_argv)
|
str(self.__archive_dir), "--dry-run"] + extra_argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user