from __future__ import annotations from typing import TYPE_CHECKING from auto_reverse.doc.client import client_gen_command if TYPE_CHECKING: from pathlib import Path def test_command_references_spec_and_out(tmp_path: Path): spec = tmp_path / "openapi.yaml" out = tmp_path / "client" cmd = client_gen_command(spec, out) assert str(spec) in cmd assert "openapi-python-client" in " ".join(cmd)