Skip to content
Snippets Groups Projects

Membership, choose_identity, pendulum, asynctest dependencies

Merged Moul requested to merge 251_140_88_membership into dev
2 files
+ 6
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
2
@@ -17,18 +17,21 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
import pytest
from click.testing import CliRunner
from silkaj.tx import transaction_amount
from silkaj.money import UDValue
from silkaj.cli import cli
from silkaj.constants import MINIMAL_TX_AMOUNT, FAILURE_EXIT_STATUS
import patched
@pytest.mark.asyncio
async def test_transaction_amount():
async def test_transaction_amount(monkeypatch):
"""test passed amounts passed tx command
float ≠ 100 does not give the exact value"""
udvalue = await UDValue().ud_value
monkeypatch.setattr(UDValue, "get_ud_value", patched.ud_value)
udvalue = patched.mock_ud_value
trials = (
# tests for --amount (unit)
([141.89], None, ["A"], [14189]),
Loading