diff --git a/features/steps/core.py b/features/steps/core.py index 1c559619..97128094 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -388,6 +388,7 @@ def all_input_was_used(context): for temp in context.iter_text: assert "" == temp, "Not all inputs were consumed" + @when('we run "{command}"') @when('we run "{command}" and pipe') @when('we run "{command}" and pipe "{text}"') @@ -397,8 +398,8 @@ def run(context, command, text=""): if "config_path" in context and context.config_path is not None: with open(context.config_path) as f: context.jrnl_config = yaml.load(f, Loader=yaml.FullLoader) - else: - context.jrnl_config = None + else: + context.jrnl_config = None if "cache_dir" in context and context.cache_dir is not None: cache_dir = os.path.join("features", "cache", context.cache_dir) diff --git a/jrnl/plugins/__init__.py b/jrnl/plugins/__init__.py index f6b22c54..ad174f0b 100644 --- a/jrnl/plugins/__init__.py +++ b/jrnl/plugins/__init__.py @@ -10,7 +10,7 @@ from .markdown_exporter import MarkdownExporter from .tag_exporter import TagExporter from .dates_exporter import DatesExporter from .template_exporter import __all__ as template_exporters -from .text_exporter import PrettyExporter, TextExporter +from .text_exporter import TextExporter from .xml_exporter import XMLExporter from .yaml_exporter import YAMLExporter @@ -20,7 +20,6 @@ __exporters = [ TagExporter, DatesExporter, TextExporter, - PrettyExporter, XMLExporter, YAMLExporter, FancyExporter, diff --git a/tests/test_color.py b/tests/test_color.py index 02ff4edb..14dc7938 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -15,9 +15,3 @@ def test_colorize(data_fixture): colorized_string = colorize(string, "BLUE", True) assert colorized_string == Style.BRIGHT + Fore.BLUE + string + Style.RESET_ALL - - -def test_colorize_none(data_fixture): - string = data_fixture - colorized_string = colorize(string, None, False) - assert colorized_string == string