Skip to content

Commit

Permalink
🎨 Use variable instead of hard coding password
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbadyal committed Jan 10, 2024
1 parent a40337a commit c16329c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion esxport/click_opt/click_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def convert(self: Self, value: Any, param: Parameter | None, ctx: Context | None
"""Convert input to json."""
try:
return json.loads(value) # type: ignore[no-any-return]

except json.JSONDecodeError as exc:
self.fail(invalid_query_format.format(value=value, exc=exc), param, ctx)

Expand Down
2 changes: 1 addition & 1 deletion test/click/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_mandatory(self: Self, cli_runner: CliRunner, esxport_obj_with_data: EsX
result = cli_runner.invoke(
cli,
["-q", args["q"], "-o", args["o"], "-i", args["i"]],
input="password\n",
input=random_pass,
catch_exceptions=False,
)
assert result.exit_code == 0
Expand Down

0 comments on commit c16329c

Please sign in to comment.