mirror of
https://github.com/docling-project/docling.git
synced 2025-06-27 05:20:05 +00:00
21 lines
428 B
Python
21 lines
428 B
Python
![]() |
from typer.testing import CliRunner
|
||
|
|
||
|
from docling.cli.main import app
|
||
|
|
||
|
runner = CliRunner()
|
||
|
|
||
|
|
||
|
def test_cli_help():
|
||
|
result = runner.invoke(app, ["--help"])
|
||
|
assert result.exit_code == 0
|
||
|
|
||
|
|
||
|
def test_cli_version():
|
||
|
result = runner.invoke(app, ["--version"])
|
||
|
assert result.exit_code == 0
|
||
|
|
||
|
|
||
|
def test_cli_convert():
|
||
|
result = runner.invoke(app, ["./tests/data/2305.03393v1-pg9.pdf"])
|
||
|
assert result.exit_code == 0
|