Files
wehub-resource-sync b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:48:47 +08:00

22 lines
530 B
Python

from unittest.mock import AsyncMock
import pytest
from chainlit.data.storage_clients.base import BaseStorageClient
from chainlit.user import User
@pytest.fixture
def mock_storage_client():
mock_client = AsyncMock(spec=BaseStorageClient)
mock_client.upload_file.return_value = {
"url": "https://example.com/test.txt",
"object_key": "test_user/test_element/test.txt",
}
return mock_client
@pytest.fixture
def test_user() -> User:
return User(identifier="test_user_identifier", metadata={})