QA: Fix bug in -usecli logic that converts booleans to non-lowercase strings
This commit is contained in:
parent
4704e5f074
commit
a3fa4d6a6a
1 changed files with 1 additions and 2 deletions
|
@ -351,8 +351,7 @@ class TestNodeCLI():
|
||||||
|
|
||||||
def send_cli(self, command=None, *args, **kwargs):
|
def send_cli(self, command=None, *args, **kwargs):
|
||||||
"""Run bitcoin-cli command. Deserializes returned string as python object."""
|
"""Run bitcoin-cli command. Deserializes returned string as python object."""
|
||||||
|
pos_args = [str(arg).lower() if type(arg) is bool else str(arg) for arg in args]
|
||||||
pos_args = [str(arg) for arg in args]
|
|
||||||
named_args = [str(key) + "=" + str(value) for (key, value) in kwargs.items()]
|
named_args = [str(key) + "=" + str(value) for (key, value) in kwargs.items()]
|
||||||
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
|
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
|
||||||
p_args = [self.binary, "-datadir=" + self.datadir] + self.options
|
p_args = [self.binary, "-datadir=" + self.datadir] + self.options
|
||||||
|
|
Loading…
Reference in a new issue