mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 22:30:31 +08:00
Refactor: reformat all code for lefthook using ruff and gofmt (#16585)
This commit is contained in:
@@ -342,9 +342,7 @@ class TestThinkStreamParser(unittest.TestCase):
|
||||
with self.subTest(case=case_name):
|
||||
buf = io.StringIO()
|
||||
with redirect_stdout(buf):
|
||||
think_text, answer_text, markers = asyncio.run(
|
||||
_collect_case(case["chunks"], case["min_tokens"])
|
||||
)
|
||||
think_text, answer_text, markers = asyncio.run(_collect_case(case["chunks"], case["min_tokens"]))
|
||||
|
||||
expected = case["expected"]
|
||||
self.assertEqual(think_text, expected["think"], case_name)
|
||||
|
||||
Reference in New Issue
Block a user