12 lines
400 B
Python
12 lines
400 B
Python
"""Submit synthetic attachments without waiting for worker; no credentials printed."""
|
|
import sys
|
|
from pathlib import Path
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'tests'))
|
|
from client import Client
|
|
|
|
client = Client()
|
|
actor, _, _, chat = client.bootstrap()
|
|
for _ in range(3):
|
|
attachment, _ = client.attachment(actor, chat)
|
|
print('accepted attachment:', attachment['id'])
|