演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
334 B
Python
13 lines
334 B
Python
from machinery.context import AppRequestContext
|
|
|
|
|
|
def test_app_request_context_contains_only_app_scope() -> None:
|
|
context = AppRequestContext(
|
|
tenant_id="tenant-1",
|
|
app_id="app-1",
|
|
)
|
|
|
|
assert context.tenant_id == "tenant-1"
|
|
assert context.app_id == "app-1"
|
|
assert not hasattr(context, "account_id")
|