mirror of
https://github.com/containers/ramalama.git
synced 2026-02-06 00:48:04 +01:00
This commit refactors the testing infrastructure to use tox, centralizing the configuration in pyproject.toml. Key changes: - Makefile test targets now delegate to tox. - A new pytest-based e2e testing framework is added. - An initial e2e test for the version command is included. Signed-off-by: Roberto Majadas <rmajadas@redhat.com>
12 lines
221 B
Python
12 lines
221 B
Python
import re
|
|
|
|
import pytest
|
|
from utils import check_output
|
|
|
|
|
|
@pytest.mark.e2e
|
|
def test_version_line_output():
|
|
result = check_output(["ramalama", "version"])
|
|
|
|
assert re.match(r"ramalama version \d+\.\d+.\d+", result)
|