feat: optional typed client generation from openapi spec
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user