mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 18:15:33 +00:00
Shared resource use
This commit is contained in:
1 parent
38bfb19739
commit
7530e54aec
34 files changed
+1322
-101
No files matched your search
@@ -195,6 +195,9 @@ def _update_patches(sub, repo, team_access, can_access_mock):
|
||||
patch("docsgpt.api.user.agents.routes.AgentsRepository", return_value=repo),
|
||||
*_access_patches(sub, repo, team_access),
|
||||
patch("docsgpt.api.user.agents.routes.can_access", can_access_mock),
|
||||
# Sponsor bookkeeping queries the (mocked) connection; covered with a
|
||||
# real database in tests/api/user/test_resource_sponsors.py.
|
||||
patch("docsgpt.api.user.agents.routes.sponsors_after_save", return_value={}),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user