summaryrefslogtreecommitdiff
path: root/tests/test_call_modes.py
blob: 026fdd1e23818451cbf5e928acd02e156f6f26e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

import subprocess
import sys
from pathlib import Path

from tox.pytest import ToxProject


def test_call_as_module(empty_project: ToxProject) -> None:  # noqa: U100
    subprocess.check_output([sys.executable, "-m", "tox", "-h"])


def test_call_as_exe(empty_project: ToxProject) -> None:  # noqa: U100
    subprocess.check_output([str(Path(sys.executable).parent / "tox4"), "-h"])