File: engines_test.py

package info (click to toggle)
python-pook 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: python: 3,558; makefile: 13
file content (19 lines) | stat: -rw-r--r-- 485 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 pytest


@pytest.mark.parametrize(
    "test_command",
    (
        pytest.param("pytest tests/integration/engines/pytest_suite.py", id="pytest"),
        pytest.param(
            "python3 -m unittest tests.integration.engines.unittest_suite", id="unittest"
        ),
    ),
)
def test_engines(test_command):
    args = test_command.split(" ")
    assert (
        subprocess.call(args) == 0
    ), f"Engine smoke test failed for command '{test_command}'"