Skip to content

Commit

Permalink
fixed small test case issues
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mclain committed Nov 27, 2024
1 parent 6add5c7 commit 6cd3f9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions landscape/client/tests/test_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,14 @@ def test_true_values(self):
val = True
for t in TRUTHY_VALUES:
val = convert_arg_to_bool(t)
self.assertTrue(val)
self.assertTrue(val)

def test_false_values(self):
FALSY_VALUES = {"false", "no", "n", "0", "off", "FALSE", "No"}
val = False
for f in FALSY_VALUES:
val = convert_arg_to_bool(f)
self.assertFalse(val)
self.assertFalse(val)

@mock.patch("landscape.client.deployment.info")
def test_invalid_values(self, logging):
Expand All @@ -631,4 +631,4 @@ def test_invalid_values(self, logging):
"Error. Invalid boolean provided in config or parameters. "
+ "Defaulting to False.",
)
self.assertFalse(val)
self.assertFalse(val)

0 comments on commit 6cd3f9c

Please sign in to comment.