mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-23 19:16:06 +02:00
668ce16dc7
Gate messages now propagate via the Infonet hashchain as encrypted blobs — every node syncs them through normal chain sync while only Gate members with MLS keys can decrypt. Added mesh reputation system, peer push workers, voluntary Wormhole opt-in for node participation, fork recovery, killwormhole scripts, obfuscated terminology, and hardened the self-updater to protect encryption keys and chain state during updates. New features: Shodan search, train tracking, Sentinel Hub imagery, 8 new intelligence layers, CCTV expansion to 11,000+ cameras across 6 countries, Mesh Terminal CLI, prediction markets, desktop-shell scaffold, and comprehensive mesh test suite (215 frontend + backend tests passing). Community contributors: @wa1id, @AlborzNazari, @adust09, @Xpirix, @imqdcr, @csysp, @suranyami, @chr0n1x, @johan-martensson, @singularfailure, @smithbh, @OrfeoTerkuci, @deuza, @tm-const, @Elhard1, @ttulttul
21 lines
798 B
Python
21 lines
798 B
Python
from unittest.mock import patch
|
|
|
|
|
|
def test_geocode_search_proxy(client):
|
|
with patch("main.search_geocode") as mock_search:
|
|
mock_search.return_value = [{"label": "Denver, CO, USA", "lat": 39.7392, "lng": -104.9903}]
|
|
r = client.get("/api/geocode/search?q=denver&limit=1")
|
|
assert r.status_code == 200
|
|
data = r.json()
|
|
assert data["count"] == 1
|
|
assert data["results"][0]["label"] == "Denver, CO, USA"
|
|
|
|
|
|
def test_geocode_reverse_proxy(client):
|
|
with patch("main.reverse_geocode") as mock_reverse:
|
|
mock_reverse.return_value = {"label": "Boulder, CO, USA"}
|
|
r = client.get("/api/geocode/reverse?lat=40.01499&lng=-105.27055")
|
|
assert r.status_code == 200
|
|
data = r.json()
|
|
assert data["label"] == "Boulder, CO, USA"
|