From e629923b7d1a2900cfe61a68eef00b3d3b3153d4 Mon Sep 17 00:00:00 2001 From: Michael Whittle Date: Fri, 11 Aug 2023 22:42:17 +0100 Subject: [PATCH] fixed broken test --- config.json.sample | 4 ++-- tests/unit_tests/test_telegram_bot.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config.json.sample b/config.json.sample index e404d961..2722b9b9 100644 --- a/config.json.sample +++ b/config.json.sample @@ -71,7 +71,7 @@ "sellsmartswitch": 0, "trailingbuypcnt": 0.5, "telegramtradesonly": 0, - "granularity": "3600", + "granularity": "3600" } }, "coinbasepro": { @@ -108,7 +108,7 @@ "sellsmartswitch": 0, "trailingbuypcnt": 0.5, "telegramtradesonly": 0, - "granularity": "3600", + "granularity": "3600" } }, "telegram": { diff --git a/tests/unit_tests/test_telegram_bot.py b/tests/unit_tests/test_telegram_bot.py index bd821e05..b81ff374 100644 --- a/tests/unit_tests/test_telegram_bot.py +++ b/tests/unit_tests/test_telegram_bot.py @@ -1,12 +1,9 @@ import os import sys import unittest -# pylint: disable=import-error -from models.telegram import ( - Wrapper, -) sys.path.append(".") +from models.telegram import Wrapper wrapper = Wrapper("config.json.sample") wrapper.helper.datafolder = os.path.join(os.curdir, "tests", "unit_tests", "data")