mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-16 19:18:32 +02:00
Use correct exporter class
This commit is contained in:
parent
53e7be72de
commit
39621a9e15
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ from ruamel.yaml import YAML
|
|||
from jrnl.exception import JrnlException
|
||||
from jrnl.Journal import PlainJournal
|
||||
from jrnl.plugins.fancy_exporter import check_provided_linewrap_viability
|
||||
from jrnl.plugins.text_exporter import TextExporter
|
||||
from jrnl.plugins.yaml_exporter import YAMLExporter
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
@ -49,5 +49,5 @@ class TestYaml:
|
|||
with TemporaryDirectory() as tmpdir:
|
||||
p = Path(tmpdir / "non_existing_folder")
|
||||
with pytest.raises(JrnlException):
|
||||
TextExporter.write_file(simple_journal, p)
|
||||
YAMLExporter.write_file(simple_journal, p)
|
||||
assert not p.exists()
|
||||
|
|
Loading…
Add table
Reference in a new issue