Roles audit and revamp

This commit is contained in:
Pavel committed 2026-09-29 10:42:39 +04:00
1 parent 208d34abc7
commit 98afa5d93c
134 files changed
+13725 -1702

No files matched your search

+2 -2
View File
@@ -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