Skip to content

Commit

Permalink
Change wallet test arg to store true / Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Nov 26, 2024
1 parent c7e5cc0 commit 47fd807
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions acapy_agent/commands/tests/test_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_exec_start(self):
"0.0.0.0",
"80",
"--no-ledger",
"--wallet-test",
]
)
start_app.assert_called_once()
Expand Down
1 change: 1 addition & 0 deletions acapy_agent/commands/tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ async def test_execute(self):
"--from-version",
"v0.7.0",
"--force-upgrade",
"--wallet-test",
]
)

Expand Down
3 changes: 1 addition & 2 deletions acapy_agent/config/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1634,8 +1634,7 @@ def add_arguments(self, parser: ArgumentParser):
)
parser.add_argument(
"--wallet-test",
type=str,
metavar="<wallet-test>",
action="store_true",
default=False,
env_var="ACAPY_WALLET_TEST",
help=(
Expand Down
6 changes: 2 additions & 4 deletions acapy_agent/config/tests/test_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,7 @@ async def test_wallet_key_derivation_method_value_parsing(self):
group.add_arguments(parser)

result = parser.parse_args(
[
"--wallet-key-derivation-method",
key_derivation_method,
]
["--wallet-key-derivation-method", key_derivation_method, "--wallet-test"]
)

settings = group.get_settings(result)
Expand All @@ -545,6 +542,7 @@ async def test_wallet_key_value_parsing(self):
[
"--wallet-key",
key_value,
"--wallet-test",
]
)

Expand Down

0 comments on commit 47fd807

Please sign in to comment.