1
0
mirror of https://github.com/Rikj000/MoniGoMani.git synced 2022-03-06 00:08:05 +03:00
Files
MoniGoMani-freqtrade-trading/tests/mgm_hurry_monigomani_logger_test.py
2021-08-15 15:24:14 +02:00

31 lines
578 B
Python

# -*- coding: utf-8 -*-
import sys
import pytest
sys.path.append('.')
sys.path.append('..')
from user_data.mgm_tools.mgm_hurry.MoniGoManiLogger import MoniGoManiLogger # noqa: E402
# --- ↓
# --- ↓ Unit Testing "__init__"
# --- ↓
def test_initialisation_logger():
logger = MoniGoManiLogger('.', print_output=True)
assert isinstance(logger, MoniGoManiLogger)
# --- ↑
# --- ↓
# --- ↓ Unit Testing "get_logger"
# --- ↓
def test_get_logger():
logger = MoniGoManiLogger('.', print_output=True).get_logger()
assert logger is not None
# --- ↑