Merge pull request #4173 from freqtrade/fix/4161

Fix #4161 - by not using the problematic method for windows
This commit is contained in:
Matthias 2021-01-08 19:22:48 +01:00 committed by GitHub
commit 5f17dd06a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import re
from datetime import timedelta
from datetime import datetime, timedelta, timezone
from pathlib import Path
import pandas as pd
@ -121,8 +121,8 @@ def test_generate_backtest_stats(default_conf, testdatadir):
}
assert strat_stats['max_drawdown'] == 0.0
assert strat_stats['drawdown_start'] == Arrow.fromtimestamp(0).datetime
assert strat_stats['drawdown_end'] == Arrow.fromtimestamp(0).datetime
assert strat_stats['drawdown_start'] == datetime(1970, 1, 1, tzinfo=timezone.utc)
assert strat_stats['drawdown_end'] == datetime(1970, 1, 1, tzinfo=timezone.utc)
assert strat_stats['drawdown_end_ts'] == 0
assert strat_stats['drawdown_start_ts'] == 0
assert strat_stats['pairlist'] == ['UNITTEST/BTC']