feat: use each user's local NocoBase login
This commit is contained in:
@@ -12,7 +12,6 @@ from starlette.routing import Route
|
||||
from nocobase_crm_mcp.nocobase_http import NocoBaseHttpError
|
||||
from nocobase_crm_mcp.uploads import UploadEndpoint
|
||||
|
||||
|
||||
AUTH = {"Authorization": "Bearer secret"}
|
||||
|
||||
|
||||
@@ -183,7 +182,10 @@ class UploadEndpointTests(unittest.IsolatedAsyncioTestCase):
|
||||
)
|
||||
|
||||
for upstream_error, error_code in cases:
|
||||
with self.subTest(status_code=upstream_error.status_code, error_code=error_code), TemporaryDirectory() as temp_dir:
|
||||
with (
|
||||
self.subTest(status_code=upstream_error.status_code, error_code=error_code),
|
||||
TemporaryDirectory() as temp_dir,
|
||||
):
|
||||
http_client = FakeHttpClient()
|
||||
http_client.error = upstream_error
|
||||
async with await self._client_for(http_client, temp_dir) as client:
|
||||
|
||||
Reference in New Issue
Block a user