From ffa67979586447479e4fdf6ccdd03559f0e7f2c3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 28 Oct 2020 16:29:08 +0100 Subject: [PATCH] Improve test coverage --- tests/test_arguments.py | 3 +++ tests/test_wallets.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/tests/test_arguments.py b/tests/test_arguments.py index 2af36277b..315d47876 100644 --- a/tests/test_arguments.py +++ b/tests/test_arguments.py @@ -249,6 +249,9 @@ def test_check_int_positive() -> None: with pytest.raises(argparse.ArgumentTypeError): check_int_positive('0') + with pytest.raises(argparse.ArgumentTypeError): + check_int_positive(0) + with pytest.raises(argparse.ArgumentTypeError): check_int_positive('3.5') diff --git a/tests/test_wallets.py b/tests/test_wallets.py index 450dabc4d..b7aead0c4 100644 --- a/tests/test_wallets.py +++ b/tests/test_wallets.py @@ -74,6 +74,10 @@ def test_sync_wallet_at_boot(mocker, default_conf): freqtrade.wallets.update() assert update_mock.call_count == 1 + assert freqtrade.wallets.get_free('NOCURRENCY') == 0 + assert freqtrade.wallets.get_used('NOCURRENCY') == 0 + assert freqtrade.wallets.get_total('NOCURRENCY') == 0 + def test_sync_wallet_missing_data(mocker, default_conf): default_conf['dry_run'] = False