mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-07-05 11:57:56 +02:00
af9b3d08cc
Add Telegram OSINT with hourly incremental t.me scraping, metro geocoding separate from news centroids, threat-intercept popup UI with inline media, and HTML markers above alert boxes so pins stay clickable. Expose GFW_API_TOKEN in onboarding and Settings Maritime; harden GFW/CCTV/geo fetchers. Port Osiris- derived recon, SCM, entity graph, malware/cyber feeds, sanctions, and submarine cable layers with tests and documentation. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
449 B
Python
14 lines
449 B
Python
from services.scm.suppliers import _seismic_risk_level
|
|
|
|
|
|
def test_micro_quakes_ignored():
|
|
assert _seismic_risk_level(10.0, 3.9) is None
|
|
assert _seismic_risk_level(10.0, 4.4) is None
|
|
|
|
|
|
def test_meaningful_quake_thresholds():
|
|
assert _seismic_risk_level(30.0, 4.6) == "HIGH"
|
|
assert _seismic_risk_level(80.0, 5.2) == "HIGH"
|
|
assert _seismic_risk_level(50.0, 5.6) == "CRITICAL"
|
|
assert _seismic_risk_level(150.0, 6.1) == "CRITICAL"
|