Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Dec 18, 2024
1 parent a32f5dc commit c92dec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/_tests/cmds/test_click_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_click_address_type_config(root_path_populated_with_config: Path) -> Non
context = cast(Context, FakeContext(obj=ChiaCliContext(root_path=root_path_populated_with_config).to_click()))
# run test that should pass
assert AddressParamType().convert(burn_address, None, context) == CliAddress(burn_ph, burn_address, AddressType.XCH)
assert context.obj["expected_prefix"] == "xch" # validate that the prefix was set correctly
assert ChiaCliContext.from_click(context).expected_prefix == "xch" # validate that the prefix was set correctly
# use txch address
with pytest.raises(AttributeError): # attribute error because the context does not have a real error handler
AddressParamType().convert(burn_address_txch, None, context)
Expand Down

0 comments on commit c92dec0

Please sign in to comment.