diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py index 5b3ed8b9a5fd0b776ac5b987c3a7c5003a9194d3..dcbc3d14edda54b666c38d26aef3438fec310a6a 100644 --- a/tests/test_end_to_end.py +++ b/tests/test_end_to_end.py @@ -29,9 +29,10 @@ def test_id(): def test_amount(): """tests 'silkaj amount' command on gtest""" - output = check_output(["silkaj", "--gtest", "balance", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"]).decode() + output = check_output( + ["silkaj", "--gtest", "balance", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"] + ).decode() assert "Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj" in output assert "Total Relative =" in output assert "UD ÄžTest" in output assert "Total Quantitative =" in output - diff --git a/tests/test_unit_tx.py b/tests/test_unit_tx.py index f2e6375d8142cfd67ca52fd9a4cad8b8537393f2..b1300203181175e46b4940fca8a26b231d580c90 100644 --- a/tests/test_unit_tx.py +++ b/tests/test_unit_tx.py @@ -3,12 +3,9 @@ import pytest from silkaj.tx import truncBase -@pytest.mark.parametrize('amount,base,expected', [ - (0, 0, 0), - (10, 2, 0), - (100, 2, 100), - (306, 2, 300), - (3060, 3, 3000), -]) +@pytest.mark.parametrize( + "amount,base,expected", + [(0, 0, 0), (10, 2, 0), (100, 2, 100), (306, 2, 300), (3060, 3, 3000)], +) def test_truncBase(amount, base, expected): assert truncBase(amount, base) == expected