From 3606267b1b139a17716e500fa61dd7f46ff3ef91 Mon Sep 17 00:00:00 2001 From: majh Date: Thu, 14 Mar 2024 20:56:33 +0000 Subject: [PATCH] fix test due to new CLI arg description handling --- tests/test_conflator_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_conflator_functions.py b/tests/test_conflator_functions.py index 615b4d4..c48bd1d 100644 --- a/tests/test_conflator_functions.py +++ b/tests/test_conflator_functions.py @@ -41,7 +41,7 @@ class Config(ConfigModel): assert len(cli_args) == 1 for arg in cli_args: assert arg.argparse_key == "test_email" - assert arg.description is None + assert arg.description == "" assert arg.args == ("--test-email",) class NewConfig(ConfigModel): @@ -58,7 +58,7 @@ class NewConfig(ConfigModel): assert len(cli_args) == 2 for arg in cli_args: assert arg.argparse_key in ["test_email", "test_key"] - assert arg.description is None + assert arg.description in ["Test API Key", ""] if arg.argparse_key == "test_email": assert arg.args == ("--test-email",) else: