Skip to content

Commit

Permalink
fix test due to new CLI arg description handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshawkes committed Mar 14, 2024
1 parent d95ae92 commit 3606267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_conflator_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down

0 comments on commit 3606267

Please sign in to comment.