mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-11 19:57:32 +00:00
test: clarify mocked input-fee comment in trusted-mint test
The comment described "21 proofs @ 100 ppk" arithmetic, but the mocked token has one proof and get_fees_for_proofs is hard-mocked to 3, so the math wasn't exercised. Describe what the mock actually does. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ecd46975b4
commit
7969a8da55
@@ -90,7 +90,7 @@ async def test_recieve_token_trusted_mint_deducts_input_fee() -> None:
|
||||
|
||||
mock_wallet = Mock()
|
||||
mock_wallet.split = AsyncMock()
|
||||
# 21 proofs @ 100 ppk -> (21*100 + 999) // 1000 = 3 sat input fee
|
||||
# Mock a 3-sat input fee from the Cashu wallet API.
|
||||
mock_wallet.get_fees_for_proofs = Mock(return_value=3)
|
||||
|
||||
from routstr.core.settings import settings
|
||||
|
||||
Reference in New Issue
Block a user