mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-30 00:53:05 +00:00
Update tests to properly mock fee
This commit is contained in:
@@ -99,11 +99,11 @@ def test_edge_init(mocker, edge_conf) -> None:
|
||||
|
||||
def test_edge_init_fee(mocker, edge_conf) -> None:
|
||||
patch_exchange(mocker)
|
||||
edge_conf['fee'] = 0.1234
|
||||
edge_conf['fee'] = 0.01234
|
||||
edge_conf['stake_amount'] = 20
|
||||
fee_mock = mocker.patch(f'{EXMS}.get_fee', return_value=0.5)
|
||||
edge_cli = EdgeCli(edge_conf)
|
||||
assert edge_cli.edge.fee == 0.1234
|
||||
assert edge_cli.edge.fee == 0.01234
|
||||
assert fee_mock.call_count == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user