from pathlib import Path
import importlib
import sys


PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
    sys.path.insert(0, str(PROJECT_ROOT))


def test_local_bytetrack_module_is_importable_from_project_root():
    module = importlib.import_module("bytetrack_min_aggressive")

    assert hasattr(module, "BYTETracker")


def test_local_bytetrack_module_file_exists_in_project_root():
    assert (PROJECT_ROOT / "bytetrack_min_aggressive.py").exists()
