From afe700e70a3e053783cd7c6a4ec7f09359db2773 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 2 Dec 2023 15:29:02 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20args=20unit=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tests/llm_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/tests/llm_test.py b/server/tests/llm_test.py index 1ff330687..ef74b7059 100644 --- a/server/tests/llm_test.py +++ b/server/tests/llm_test.py @@ -51,10 +51,12 @@ class TestBaseLLM: def test_llm_collect_args(self): options = CompletionOptions(model=self.model) - assert self.llm.collect_args(options) == { + args = self.llm.collect_args(options) + for k, v in { **DEFAULT_ARGS, "model": self.model, - } + }.items(): + assert args[k] == v @pytest.mark.skipif(SPEND_MONEY is False, reason="Costs money") @async_test