Use correct exporter class

This commit is contained in:
outa 2022-09-22 11:44:42 +02:00
parent 53e7be72de
commit 39621a9e15

View file

@ -10,7 +10,7 @@ from ruamel.yaml import YAML
from jrnl.exception import JrnlException from jrnl.exception import JrnlException
from jrnl.Journal import PlainJournal from jrnl.Journal import PlainJournal
from jrnl.plugins.fancy_exporter import check_provided_linewrap_viability 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() @pytest.fixture()
@ -49,5 +49,5 @@ class TestYaml:
with TemporaryDirectory() as tmpdir: with TemporaryDirectory() as tmpdir:
p = Path(tmpdir / "non_existing_folder") p = Path(tmpdir / "non_existing_folder")
with pytest.raises(JrnlException): with pytest.raises(JrnlException):
TextExporter.write_file(simple_journal, p) YAMLExporter.write_file(simple_journal, p)
assert not p.exists() assert not p.exists()