refactor: update import paths and benchmark discovery
Updated import paths to use direct module references instead of relative paths. Implemented dynamic benchmark discovery based on the contents of the tests/ directory, allowing for more flexible benchmark configuration without requiring code changes. This change improves maintainability and makes it easier to add new benchmarks.
This commit is contained in:
@@ -13,7 +13,7 @@ from pathlib import Path
|
||||
# Добавляем путь к исходникам, чтобы импортировать base
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
from src.benchmarks.base import TEST_SEPARATOR
|
||||
from benchmark import TEST_SEPARATOR
|
||||
|
||||
def convert_tests(test_dir: str) -> None:
|
||||
"""Конвертирует все тесты в указанной директории."""
|
||||
|
||||
Reference in New Issue
Block a user