mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-19 12:15:59 +00:00
Roles audit and revamp
This commit is contained in:
1 parent
208d34abc7
commit
98afa5d93c
134 files changed
+13725
-1702
No files matched your search
@@ -319,9 +319,9 @@ class TestGetSinglePromptHappyPath:
|
||||
from docsgpt.api.user.prompts.routes import GetSinglePrompt
|
||||
|
||||
# Presets are composed in-process now, so the failure this covers is a
|
||||
# repository error on the custom-prompt path.
|
||||
# database error on the custom-prompt path (the access check runs first).
|
||||
with patch(
|
||||
"docsgpt.api.user.prompts.routes.PromptsRepository",
|
||||
"docsgpt.api.user.prompts.routes.require",
|
||||
side_effect=OSError("boom"),
|
||||
), app.test_request_context("/api/get_single_prompt?id=some-custom-id"):
|
||||
from flask import request
|
||||
|
||||
Reference in new issue
Block a user