basic behavior test

This commit is contained in:
Suhas 2021-05-06 12:30:08 -04:00 committed by MinchinWeb
parent cc682a30a1
commit 6c6929bbbf
2 changed files with 25 additions and 0 deletions

View file

@ -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 "<plugin_name> : <version> from jrnl.plugins.exporter.<plugin_source>_exporter"
Examples:
| plugin_name | plugin_source | version |
| md | markdown | v2.7.2-beta |
| testing | testing | v0.0.1 |
@todo
Scenario: Listing available journals

View file

@ -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'