You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
495 B
Python
19 lines
495 B
Python
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()
|