Removed utils, moved get_sides to conftest

This commit is contained in:
Sam Germain
2021-09-16 16:25:02 -06:00
parent 5fcb69a0b5
commit dec2f377ff
4 changed files with 7 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ from copy import deepcopy
from datetime import datetime, timedelta
from functools import reduce
from pathlib import Path
from typing import Tuple
from unittest.mock import MagicMock, Mock, PropertyMock
import arrow
@@ -262,6 +263,10 @@ def create_mock_trades_with_leverage(fee, use_db: bool = True):
Trade.query.session.flush()
def get_sides(is_short: bool) -> Tuple[str, str]:
return ("sell", "buy") if is_short else ("buy", "sell")
@pytest.fixture(autouse=True)
def patch_coingekko(mocker) -> None:
"""