Skip to content

Commit

Permalink
tests.database - fix incorrect convert action
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 7, 2024
1 parent e2167c3 commit 5b87aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from acacore.models.file import File
from acacore.models.history import HistoryEntry
from acacore.models.reference_files import Action
from acacore.models.reference_files import ConvertAction


@pytest.fixture()
Expand Down Expand Up @@ -50,7 +51,7 @@ def test_file(test_files: Path, test_files_data: dict[str, dict]) -> File:
action: Action = Action(
name=filedata["matches"]["format"],
action="convert",
convert={"tool": "convertool", "outputs": ["odt", "pdf"]},
convert=ConvertAction(tool="convertool", output="odt"),
)
file: File = File.from_file(file_path)

Expand Down

0 comments on commit 5b87aba

Please sign in to comment.