Increase security and reformat
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user