feat(work): add task-scoped attachment intake and durable file delivery
This commit is contained in:
@@ -74,7 +74,7 @@ class Platform:
|
||||
|
||||
|
||||
@pytest_asyncio.fixture
|
||||
async def env(tmp_path):
|
||||
async def env(tmp_path,request):
|
||||
ca_key, ca = issue_ca()
|
||||
ca_path = tmp_path / "ca.pem"
|
||||
ca_path.write_bytes(ca.public_bytes(serialization.Encoding.PEM))
|
||||
@@ -89,7 +89,7 @@ async def env(tmp_path):
|
||||
feishu_app_id="cli_test", feishu_app_secret="fake-app-secret", credential_mode="broker",
|
||||
credential_keyring_file=keyring, credential_permission_profiles={"product-v1": ["read"], "product-v2": ["read", "write"]},
|
||||
public_url="https://relay.example.test", feishu_api_base="https://work.example.test",
|
||||
feishu_authorize_url="https://work.example.test/open-apis/authen/v1/index")
|
||||
feishu_authorize_url="https://work.example.test/open-apis/authen/v1/index",work_files_enabled=bool(getattr(request,'param',False)))
|
||||
redis = fakeredis.aioredis.FakeRedis(server=fakeredis.FakeServer(), decode_responses=True)
|
||||
platform = Platform()
|
||||
app = create_app(settings, redis, platform)
|
||||
|
||||
Reference in New Issue
Block a user