Lightweight containerized prosody tooling + moved auth scripts + xmpp reconnect/auth stabilization
This commit is contained in:
17
core/tests/test_transport_capabilities.py
Normal file
17
core/tests/test_transport_capabilities.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from core.transports.capabilities import capability_snapshot, supports, unsupported_reason
|
||||
|
||||
|
||||
class TransportCapabilitiesTests(SimpleTestCase):
|
||||
def test_signal_reactions_supported(self):
|
||||
self.assertTrue(supports("signal", "reactions"))
|
||||
|
||||
def test_instagram_reactions_not_supported(self):
|
||||
self.assertFalse(supports("instagram", "reactions"))
|
||||
self.assertIn("instagram does not support reactions", unsupported_reason("instagram", "reactions"))
|
||||
|
||||
def test_snapshot_has_schema_version(self):
|
||||
snapshot = capability_snapshot()
|
||||
self.assertIn("schema_version", snapshot)
|
||||
self.assertIn("services", snapshot)
|
||||
Reference in New Issue
Block a user