mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 20:18:32 +02:00
basic behavior test
This commit is contained in:
parent
cc682a30a1
commit
6c6929bbbf
2 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
|
|
15
jrnl/plugins/exporter/testing_exporter.py
Normal file
15
jrnl/plugins/exporter/testing_exporter.py
Normal 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'
|
Loading…
Add table
Reference in a new issue