mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-20 02:16:39 +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
@@ -149,7 +149,7 @@ def _search_env(agent):
|
||||
|
||||
store = MagicMock()
|
||||
store.search.return_value = [{"text": "hit", "metadata": {"title": "T", "source": "s"}}]
|
||||
with patch("docsgpt.api.user.team_sharing.can_access", return_value=True), \
|
||||
with patch("docsgpt.api.user.resource_access.ref_principal", return_value="owner"), \
|
||||
patch("docsgpt.services.search_service.db_readonly", _conn), \
|
||||
patch("docsgpt.services.search_service.AgentsRepository", return_value=repo), \
|
||||
patch(
|
||||
|
||||
Reference in new issue
Block a user