Files
scylladb/test/raft/conftest.py

21 lines
618 B
Python

#
# Copyright (C) 2025-present ScyllaDB
#
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
#
from pathlib import PosixPath
from pytest import Collector
from test.pylib.cpp.boost.boost_facade import BoostTestFacade
from test.pylib.cpp.common_cpp_conftest import collect_items
def pytest_collect_file(file_path: PosixPath, parent: Collector):
"""
Method triggered automatically by pytest to collect files from a directory.
"""
if file_path.suffix == '.cc' and file_path.stem.endswith('test'):
return collect_items(file_path, parent, facade=BoostTestFacade(parent.config))