mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
test: use encryption in all JSON-RPC online tests
This commit is contained in:
@@ -79,7 +79,7 @@ class ACFactory:
|
|||||||
) -> Message:
|
) -> Message:
|
||||||
if not from_account:
|
if not from_account:
|
||||||
from_account = (self.get_online_accounts(1))[0]
|
from_account = (self.get_online_accounts(1))[0]
|
||||||
to_contact = from_account.create_contact(to_account.get_config("addr"))
|
to_contact = from_account.create_contact(to_account)
|
||||||
if group:
|
if group:
|
||||||
to_chat = from_account.create_group(group)
|
to_chat = from_account.create_group(group)
|
||||||
to_chat.add_contact(to_contact)
|
to_chat.add_contact(to_contact)
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
def test_vcard(acfactory) -> None:
|
def test_vcard(acfactory) -> None:
|
||||||
alice, bob = acfactory.get_online_accounts(2)
|
alice, bob = acfactory.get_online_accounts(2)
|
||||||
|
|
||||||
bob_addr = bob.get_config("addr")
|
alice_contact_bob = alice.create_contact(bob, "Bob")
|
||||||
alice_contact_bob = alice.create_contact(bob_addr, "Bob")
|
|
||||||
alice_contact_charlie = alice.create_contact("charlie@example.org", "Charlie")
|
alice_contact_charlie = alice.create_contact("charlie@example.org", "Charlie")
|
||||||
|
|
||||||
alice_chat_bob = alice_contact_bob.create_chat()
|
alice_chat_bob = alice_contact_bob.create_chat()
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
def test_webxdc(acfactory) -> None:
|
def test_webxdc(acfactory) -> None:
|
||||||
alice, bob = acfactory.get_online_accounts(2)
|
alice, bob = acfactory.get_online_accounts(2)
|
||||||
|
|
||||||
bob_addr = bob.get_config("addr")
|
alice_contact_bob = alice.create_contact(bob, "Bob")
|
||||||
alice_contact_bob = alice.create_contact(bob_addr, "Bob")
|
|
||||||
alice_chat_bob = alice_contact_bob.create_chat()
|
alice_chat_bob = alice_contact_bob.create_chat()
|
||||||
alice_chat_bob.send_message(text="Let's play chess!", file="../test-data/webxdc/chess.xdc")
|
alice_chat_bob.send_message(text="Let's play chess!", file="../test-data/webxdc/chess.xdc")
|
||||||
|
|
||||||
@@ -45,8 +44,7 @@ def test_webxdc(acfactory) -> None:
|
|||||||
def test_webxdc_insert_lots_of_updates(acfactory) -> None:
|
def test_webxdc_insert_lots_of_updates(acfactory) -> None:
|
||||||
alice, bob = acfactory.get_online_accounts(2)
|
alice, bob = acfactory.get_online_accounts(2)
|
||||||
|
|
||||||
bob_addr = bob.get_config("addr")
|
alice_contact_bob = alice.create_contact(bob, "Bob")
|
||||||
alice_contact_bob = alice.create_contact(bob_addr, "Bob")
|
|
||||||
alice_chat_bob = alice_contact_bob.create_chat()
|
alice_chat_bob = alice_contact_bob.create_chat()
|
||||||
message = alice_chat_bob.send_message(text="Let's play chess!", file="../test-data/webxdc/chess.xdc")
|
message = alice_chat_bob.send_message(text="Let's play chess!", file="../test-data/webxdc/chess.xdc")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user