mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix missing constants and test import names
- Add SUBPROCESS_TIMEOUT_SHORT to bluetooth constants - Fix test imports to use correct constant names Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,9 +7,8 @@ from unittest.mock import MagicMock, patch
|
||||
from utils.bluetooth.aggregator import DeviceAggregator
|
||||
from utils.bluetooth.models import BTObservation, BTDeviceAggregate
|
||||
from utils.bluetooth.constants import (
|
||||
RSSI_RANGE_BANDS,
|
||||
MAX_RSSI_SAMPLES,
|
||||
DEVICE_STALE_SECONDS,
|
||||
DEVICE_STALE_TIMEOUT as DEVICE_STALE_SECONDS,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ from unittest.mock import MagicMock
|
||||
from utils.bluetooth.heuristics import HeuristicsEngine
|
||||
from utils.bluetooth.models import BTDeviceAggregate
|
||||
from utils.bluetooth.constants import (
|
||||
HEURISTIC_PERSISTENT_MIN_SEEN,
|
||||
HEURISTIC_PERSISTENT_WINDOW_SECONDS,
|
||||
HEURISTIC_BEACON_VARIANCE_THRESHOLD,
|
||||
HEURISTIC_STRONG_STABLE_RSSI,
|
||||
HEURISTIC_STRONG_STABLE_VARIANCE,
|
||||
PERSISTENT_MIN_SEEN_COUNT as HEURISTIC_PERSISTENT_MIN_SEEN,
|
||||
PERSISTENT_WINDOW_SECONDS as HEURISTIC_PERSISTENT_WINDOW_SECONDS,
|
||||
BEACON_INTERVAL_MAX_VARIANCE as HEURISTIC_BEACON_VARIANCE_THRESHOLD,
|
||||
STRONG_RSSI_THRESHOLD as HEURISTIC_STRONG_STABLE_RSSI,
|
||||
STABLE_VARIANCE_THRESHOLD as HEURISTIC_STRONG_STABLE_VARIANCE,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -89,6 +89,9 @@ BLUETOOTHCTL_TIMEOUT = 10.0
|
||||
# btmgmt command timeout
|
||||
BTMGMT_TIMEOUT = 10.0
|
||||
|
||||
# Generic subprocess timeout (short operations)
|
||||
SUBPROCESS_TIMEOUT_SHORT = 5.0
|
||||
|
||||
# =============================================================================
|
||||
# ADDRESS TYPE CLASSIFICATIONS
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user