userver: samples/json2yaml/tests/conftest.py
Loading...
Searching...
No Matches
samples/json2yaml/tests/conftest.py
1# /// [pytest]
2import pytest
3
4
5def pytest_addoption(parser) -> None:
6 group = parser.getgroup('userver')
7 group.addoption('--test-binary', type=str, help='Path to build utility.')
8
9
10@pytest.fixture(scope='session')
11def path_to_json2yaml(pytestconfig):
12 return pytestconfig.option.test_binary
13 # /// [pytest]