|
|
@ -21,9 +21,9 @@ def test_cli_directory(tmp_path):
|
|
|
|
os.path.join(data_dir, "directory-test", "ocr"),
|
|
|
|
os.path.join(data_dir, "directory-test", "ocr"),
|
|
|
|
"report",
|
|
|
|
"report",
|
|
|
|
str(tmp_path / "reports"),
|
|
|
|
str(tmp_path / "reports"),
|
|
|
|
False,
|
|
|
|
metrics=False,
|
|
|
|
True,
|
|
|
|
differences=True,
|
|
|
|
"line",
|
|
|
|
textequiv_level="line",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
assert os.path.exists(tmp_path / "reports/1.xml-report.json")
|
|
|
|
assert os.path.exists(tmp_path / "reports/1.xml-report.json")
|
|
|
@ -45,9 +45,9 @@ def test_cli_fail_without_gt(tmp_path):
|
|
|
|
os.path.join(data_dir, "directory-test", "ocr"),
|
|
|
|
os.path.join(data_dir, "directory-test", "ocr"),
|
|
|
|
"report",
|
|
|
|
"report",
|
|
|
|
str(tmp_path / "reports"),
|
|
|
|
str(tmp_path / "reports"),
|
|
|
|
False,
|
|
|
|
metrics=False,
|
|
|
|
True,
|
|
|
|
differences=True,
|
|
|
|
"line",
|
|
|
|
textequiv_level="line",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
assert len(os.listdir(tmp_path / "reports")) == 2 * 2
|
|
|
|
assert len(os.listdir(tmp_path / "reports")) == 2 * 2
|
|
|
|