jenkins-job-builder/tests/yamlparser/test_views.py
Vsevolod Fedorov 60b9c23d33 Yaml parser tests: Add tests for views expansion
Currently, views handling part in YamlParser class is not covered at all.

Change-Id: Ifaac0c44b0a0487e5673060d7b1f25393161f750
2022-12-20 10:44:43 +03:00

22 lines
368 B
Python

from operator import attrgetter
from pathlib import Path
import pytest
from tests.enum_scenarios import scenario_list
fixtures_dir = Path(__file__).parent / "view_fixtures"
@pytest.fixture(
params=scenario_list(fixtures_dir),
ids=attrgetter("name"),
)
def scenario(request):
return request.param
def test_yaml_snippet(check_view):
check_view()