diff --git a/features/steps/core.py b/features/steps/core.py index 724d41cc..1c559619 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -15,7 +15,7 @@ from behave import when import keyring import toml import yaml -from yaml.loader import FullLoader, Loader + import jrnl.time from jrnl import Journal diff --git a/features/steps/export_steps.py b/features/steps/export_steps.py index 93e03c1a..e2adba2b 100644 --- a/features/steps/export_steps.py +++ b/features/steps/export_steps.py @@ -1,7 +1,7 @@ # Copyright (C) 2012-2021 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html -from jrnl import color + import json import os import shutil @@ -14,7 +14,7 @@ from behave import then import colorama -def style_text(to_bold: bool, text_color: colorama.Fore, text_to_print: str): +def style_text(to_bold: bool, text_color: Fore, text_to_print: str): """Generate colorized and styled text for expected output. Its purpose is the same as Entry.colorize :param to_bold: Flag whether the text should be bolded diff --git a/jrnl/Entry.py b/jrnl/Entry.py index efe93ae8..22668c0d 100755 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -7,7 +7,6 @@ from datetime import datetime import re import ansiwrap -import colorama from .color import colorize from .color import highlight_tags_with_background_color diff --git a/tests/test_color.py b/tests/test_color.py index f9abb88e..02ff4edb 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -1,4 +1,3 @@ -import colorama import pytest from jrnl.color import colorize