This repository has been archived on 2026-10-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
recoll-modern/tests/integration/test_container_smoke.py
T

14 lines
484 B
Python

"""Image runtime and Recoll binding contracts."""
import subprocess
from collections.abc import Callable
def test_recoll_binding_and_helper_are_present(
compose_exec: Callable[[list[str]], subprocess.CompletedProcess[str]],
) -> None:
binding = compose_exec(["python", "-c", "from recoll import recoll"])
assert binding.returncode == 0, binding.stderr
helper = compose_exec(["recoll-membership", "/documents/none"])
assert helper.returncode == 0, helper.stderr