Skip to content

Commit

Permalink
put back chia_root into context dict
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Nov 14, 2024
1 parent ac482e5 commit ad0b89a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chia/_tests/pools/test_pool_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@ async def test_plotnft_cli_show(
wallet_state_manager.root_pubkey.get_fingerprint(),
wallet_state_manager.config,
)
root_path = wallet_environments.environments[0].node.root_path

runner = CliRunner(env={"CHIA_ROOT": str(wallet_environments.environments[0].node.root_path)})
runner = CliRunner()
with runner.isolated_filesystem():
await ShowPlotNFTCMD(
rpc_info=NeedsWalletRPC(
context={"root_path": root_path},
client_info=client_info,
),
id=None,
Expand All @@ -338,6 +340,7 @@ async def test_plotnft_cli_show(
with pytest.raises(CliRpcConnectionError, match="is not a pool wallet"):
await ShowPlotNFTCMD(
rpc_info=NeedsWalletRPC(
context={"root_path": root_path},
client_info=client_info,
),
id=15,
Expand All @@ -348,6 +351,7 @@ async def test_plotnft_cli_show(
# need to capture the output and verify
await ShowPlotNFTCMD(
rpc_info=NeedsWalletRPC(
context={"root_path": root_path},
client_info=client_info,
),
id=wallet_id,
Expand All @@ -362,6 +366,7 @@ async def test_plotnft_cli_show(
# Should show the state of all pool wallets
await ShowPlotNFTCMD(
rpc_info=NeedsWalletRPC(
context={"root_path": root_path},
client_info=client_info,
),
id=None,
Expand Down

0 comments on commit ad0b89a

Please sign in to comment.