Global reformatting with black.

This commit is contained in:
Goffi 2025-09-13 10:46:10 +02:00
commit 96bf3af324

View file

@ -42,6 +42,7 @@ from libervia.backend.plugins.plugin_comp_email_gateway.pubsub_service import (
)
from libervia.backend.plugins.plugin_xep_0131 import HeadersData, Urgency
@pytest.fixture
def email_gw(host):
email_gw = EmailGatewayComponent(host)
@ -49,6 +50,7 @@ def email_gw(host):
email_gw.users_data = {}
return email_gw
class TestEmailGatewayComponent:
def test_jid_to_email_gateway_jid(self, email_gw):
@ -284,12 +286,26 @@ class TestPubsubService:
request.sender = client.jid
request.nodeIdentifier = pubsub_resource._pfs.namespace
files = [
{"id": "1", "name": "file1", "media_type": "application", "media_subtype":
"octet-stream", "size": 123, "hash_algo": "sha-256", "file_hash": "0123456789abcdef",
"created": 123},
{"id": "2", "name": "file2", "media_type": "application", "media_subtype":
"octet-stream", "size": 456, "hash_algo": "sha-256", "file_hash": "0123456789abcdef",
"created": 123},
{
"id": "1",
"name": "file1",
"media_type": "application",
"media_subtype": "octet-stream",
"size": 123,
"hash_algo": "sha-256",
"file_hash": "0123456789abcdef",
"created": 123,
},
{
"id": "2",
"name": "file2",
"media_type": "application",
"media_subtype": "octet-stream",
"size": 456,
"hash_algo": "sha-256",
"file_hash": "0123456789abcdef",
"created": 123,
},
]
host.memory.get_files = AsyncMock(return_value=files)
result, _ = await pubsub_resource.items(request)