From 6c6929bbbf2eb7d31e00b2e65831349bb3b915bc Mon Sep 17 00:00:00 2001 From: Suhas Date: Thu, 6 May 2021 12:30:08 -0400 Subject: [PATCH] basic behavior test --- features/core.feature | 10 ++++++++++ jrnl/plugins/exporter/testing_exporter.py | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 jrnl/plugins/exporter/testing_exporter.py diff --git a/features/core.feature b/features/core.feature index 26640c00..fea05fc5 100644 --- a/features/core.feature +++ b/features/core.feature @@ -17,5 +17,15 @@ Feature: Functionality of jrnl outside of actually handling journals Then the output should contain "jrnl" And the output should contain "Python" + Scenario Outline: List plugin names in --version + Given We use the config "basic_onefile.yaml" + When We run "jrnl --version" + Then the output should contain pyproject.toml version + And The output should contain " : from jrnl.plugins.exporter._exporter" + Examples: + | plugin_name | plugin_source | version | + | md | markdown | v2.7.2-beta | + | testing | testing | v0.0.1 | + @todo Scenario: Listing available journals diff --git a/jrnl/plugins/exporter/testing_exporter.py b/jrnl/plugins/exporter/testing_exporter.py new file mode 100644 index 00000000..0520d541 --- /dev/null +++ b/jrnl/plugins/exporter/testing_exporter.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# encoding: utf-8 +# Copyright (C) 2012-2021 jrnl contributors +# License: https://www.gnu.org/licenses/gpl-3.0.html + +""" +Exporter for testing and experimentation purposes +""" + +from jrnl import __version__ +from jrnl.plugins.base import BaseExporter + +class Exporter(BaseExporter): + names=["testing","test"] + version= 'v0.0.1' \ No newline at end of file