mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 08:16:38 +00:00
feat: durability and idempotency keys (#2450)
* feat: durability and idempotency keys * feat: more durable frontend * fix: tests * fix: mini issues * fix: better json validation * fix: tests
This commit is contained in:
112 files changed
+13520
-614
No files matched your search
@@ -121,7 +121,7 @@ class TestSourcesUploadExtra:
|
||||
|
||||
fake_task = MagicMock(id="t")
|
||||
with patch(
|
||||
"application.api.user.sources.upload.ingest_remote.delay",
|
||||
"application.api.user.sources.upload.ingest_remote.apply_async",
|
||||
return_value=fake_task,
|
||||
), app.test_request_context(
|
||||
"/api/remote", method="POST",
|
||||
@@ -168,7 +168,7 @@ class TestSourcesUploadExtra:
|
||||
".get_supported_connectors",
|
||||
return_value={"google_drive"},
|
||||
), patch(
|
||||
"application.api.user.sources.upload.ingest_connector_task.delay",
|
||||
"application.api.user.sources.upload.ingest_connector_task.apply_async",
|
||||
return_value=fake_task,
|
||||
), app.test_request_context(
|
||||
"/api/remote", method="POST",
|
||||
|
||||
Reference in new issue
Block a user