From 29e6298d2ebaf4a6b1b412b1274aa35b66d1f38a Mon Sep 17 00:00:00 2001 From: MichelleTPY Date: Sat, 14 Dec 2024 00:36:33 +0000 Subject: [PATCH] Remove `has_new_line` unit test changes. --- examples/server/tests/unit/test_completion.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/server/tests/unit/test_completion.py b/examples/server/tests/unit/test_completion.py index c4ae81fec..7f4f9cd03 100644 --- a/examples/server/tests/unit/test_completion.py +++ b/examples/server/tests/unit/test_completion.py @@ -25,7 +25,6 @@ def test_completion(prompt: str, n_predict: int, re_content: str, n_prompt: int, assert res.body["timings"]["prompt_n"] == n_prompt assert res.body["timings"]["predicted_n"] == n_predicted assert res.body["truncated"] == truncated - assert res.body["has_new_line"] == False assert match_regex(re_content, res.body["content"]) @@ -48,7 +47,6 @@ def test_completion_stream(prompt: str, n_predict: int, re_content: str, n_promp assert data["timings"]["prompt_n"] == n_prompt assert data["timings"]["predicted_n"] == n_predicted assert data["truncated"] == truncated - assert data["has_new_line"] == False assert data["stop_type"] == "limit" assert "generation_settings" in data assert server.n_predict is not None