mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-30 00:53:05 +00:00
Update safe_value_fallback to allow empty 2nd keys
This commit is contained in:
@@ -121,6 +121,8 @@ def test_safe_value_fallback():
|
||||
|
||||
assert safe_value_fallback(dict1, 'keyNo', 'keyNo') is None
|
||||
assert safe_value_fallback(dict1, 'keyNo', 'keyNo', 55) == 55
|
||||
assert safe_value_fallback(dict1, 'keyNo', default_value=55) == 55
|
||||
assert safe_value_fallback(dict1, 'keyNo', None, default_value=55) == 55
|
||||
|
||||
|
||||
def test_safe_value_fallback2():
|
||||
|
||||
Reference in New Issue
Block a user