Some more edits due to arrow

This commit is contained in:
Matthias
2023-05-18 19:48:11 +02:00
parent ebfc9a6039
commit 9d0f488de7
6 changed files with 7 additions and 9 deletions

View File

@@ -1758,7 +1758,7 @@ def limit_buy_order_canceled_empty(request):
'id': 'AZNPFF-4AC4N-7MKTAT',
'clientOrderId': None,
'timestamp': dt_ts(dt_now() - timedelta(minutes=601)),
'datetime': dt_now() - timedelta(minutes=601).isoformat(),
'datetime': (dt_now() - timedelta(minutes=601)).isoformat(),
'lastTradeTimestamp': None,
'status': 'canceled',
'symbol': 'LTC/USDT',
@@ -1779,7 +1779,7 @@ def limit_buy_order_canceled_empty(request):
'id': '1234512345',
'clientOrderId': 'alb1234123',
'timestamp': dt_ts(dt_now() - timedelta(minutes=601)),
'datetime': dt_now() - timedelta(minutes=601).isoformat(),
'datetime': (dt_now() - timedelta(minutes=601)).isoformat(),
'lastTradeTimestamp': None,
'symbol': 'LTC/USDT',
'type': 'limit',

View File

@@ -3,6 +3,7 @@
import logging
import math
from datetime import timedelta
from unittest.mock import MagicMock
import numpy as np
@@ -232,7 +233,7 @@ def mocked_load_data(datadir, pairs=[], timeframe='0m',
NEOBTC = [
[
tests_start_time.shift(minutes=(x * timeframe_in_minute)).int_timestamp * 1000,
dt_ts(tests_start_time + timedelta(minutes=(x * timeframe_in_minute))),
math.sin(x * hz) / 1000 + base,
math.sin(x * hz) / 1000 + base + 0.0001,
math.sin(x * hz) / 1000 + base - 0.0001,
@@ -244,7 +245,7 @@ def mocked_load_data(datadir, pairs=[], timeframe='0m',
base = 0.002
LTCBTC = [
[
tests_start_time.shift(minutes=(x * timeframe_in_minute)).int_timestamp * 1000,
dt_ts(tests_start_time + timedelta(minutes=(x * timeframe_in_minute))),
math.sin(x * hz) / 1000 + base,
math.sin(x * hz) / 1000 + base + 0.0001,
math.sin(x * hz) / 1000 + base - 0.0001,

View File

@@ -28,7 +28,6 @@ def test_dt_utc():
tzinfo=timezone.utc)
@pytest.mark.parametrize('as_ms', [True, False])
def test_dt_from_ts(as_ms):
multi = 1000 if as_ms else 1