Improve test coverage
This commit is contained in:
parent
e1e2829ef3
commit
ffa6797958
@ -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')
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user