mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-06 16:53:38 +02:00
Format + lint
This commit is contained in:
@@ -23,12 +23,12 @@ from app.fanout.community_mqtt import (
|
||||
_generate_jwt_token,
|
||||
_get_client_version,
|
||||
)
|
||||
from app.keystore import ed25519_sign_expanded
|
||||
from app.fanout.mqtt_community import (
|
||||
_config_to_settings,
|
||||
_publish_community_packet,
|
||||
_render_packet_topic,
|
||||
)
|
||||
from app.keystore import ed25519_sign_expanded
|
||||
|
||||
|
||||
def _make_test_keys() -> tuple[bytes, bytes]:
|
||||
|
||||
@@ -707,6 +707,7 @@ class TestSqsValidation:
|
||||
{"queue_url": "https://sqs.us-east-1.amazonaws.com/123456789012/mesh-events"}
|
||||
)
|
||||
|
||||
|
||||
class TestMapUploadValidation:
|
||||
def test_rejects_bad_api_url_scheme(self):
|
||||
from fastapi import HTTPException
|
||||
@@ -798,7 +799,6 @@ class TestMapUploadValidation:
|
||||
scope = _enforce_scope("map_upload", {"messages": "all", "raw_packets": "none"})
|
||||
assert scope == {"messages": "none", "raw_packets": "all"}
|
||||
|
||||
|
||||
def test_enforce_scope_sqs_preserves_raw_packets_setting(self):
|
||||
from app.routers.fanout import _enforce_scope
|
||||
|
||||
|
||||
@@ -1887,4 +1887,3 @@ class TestMapUploadIntegration:
|
||||
mock_msg.assert_not_called()
|
||||
|
||||
await manager.stop_all()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user