Increase security and reformat

This commit is contained in:
2026-03-07 20:52:13 +00:00
parent 10588a18b9
commit bca4d6898f
144 changed files with 6735 additions and 3960 deletions

View File

@@ -2,7 +2,11 @@ from asgiref.sync import async_to_sync
from django.test import SimpleTestCase
from core.clients import transport
from core.transports.capabilities import capability_snapshot, supports, unsupported_reason
from core.transports.capabilities import (
capability_snapshot,
supports,
unsupported_reason,
)
class TransportCapabilitiesTests(SimpleTestCase):
@@ -11,7 +15,10 @@ class TransportCapabilitiesTests(SimpleTestCase):
def test_instagram_reactions_not_supported(self):
self.assertFalse(supports("instagram", "reactions"))
self.assertIn("instagram does not support reactions", unsupported_reason("instagram", "reactions"))
self.assertIn(
"instagram does not support reactions",
unsupported_reason("instagram", "reactions"),
)
def test_snapshot_has_schema_version(self):
snapshot = capability_snapshot()