mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-02-04 11:44:01 +08:00
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
20 lines
411 B
Python
20 lines
411 B
Python
import os
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
root_path = Path(__file__).parent.parent
|
|
|
|
|
|
def test_select_gen() -> None:
|
|
env = os.environ.copy()
|
|
env["CHECK_JINJA"] = "1"
|
|
result = subprocess.run(
|
|
[sys.executable, Path("scripts") / "generate_select.py"],
|
|
env=env,
|
|
check=True,
|
|
cwd=root_path,
|
|
capture_output=True,
|
|
)
|
|
print(result.stdout)
|