File: test_select_gen.py

package info (click to toggle)
sqlmodel 0.0.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,128 kB
  • sloc: python: 34,496; javascript: 280; sh: 15; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)