mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
test: fix test_broadcast(): Broadcast channels are never unpromoted
This commit is contained in:
@@ -882,7 +882,7 @@ def test_broadcast(acfactory):
|
|||||||
alice_chat = alice.create_broadcast("My great channel")
|
alice_chat = alice.create_broadcast("My great channel")
|
||||||
snapshot = alice_chat.get_basic_snapshot()
|
snapshot = alice_chat.get_basic_snapshot()
|
||||||
assert snapshot.name == "My great channel"
|
assert snapshot.name == "My great channel"
|
||||||
assert snapshot.is_unpromoted
|
assert not snapshot.is_unpromoted # Broadcast channels are never unpromoted
|
||||||
assert snapshot.is_encrypted
|
assert snapshot.is_encrypted
|
||||||
assert snapshot.chat_type == ChatType.OUT_BROADCAST
|
assert snapshot.chat_type == ChatType.OUT_BROADCAST
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user