sqlmodel-fix/tests/test_select_gen.py
Sebastián Ramírez b560e9deb8
⬆️ Upgrade Ruff and Black (#968)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-03 22:22:04 -05:00

20 lines
397 B
Python

import subprocess
import sys
from pathlib import Path
from .conftest import needs_py39
root_path = Path(__file__).parent.parent
@needs_py39
def test_select_gen() -> None:
result = subprocess.run(
[sys.executable, "scripts/generate_select.py"],
env={"CHECK_JINJA": "1"},
check=True,
cwd=root_path,
capture_output=True,
)
print(result.stdout)