INNER CODE UNIT · Python

run_pytest

pydna-group/pydna · run_test.py:10

def run_pytest(args):
    """
    Run pytest in a fresh Python subprocess.
    Returns the pytest exit code.
    """
    cmd = [sys.executable, "-m", "pytest", *args]
    print("\n>>>", " ".join(cmd), "\n")
    return subprocess.run(cmd, check=False).returncode


def main() -> int:

    # ------------------------------------------------------------------
    # Anchor execution to project root
    # ------------------------------------------------------------------
    ROOT = Path(__file__).resolve().parent
    os.chdir(ROOT)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…