Scope workspace roots per account
This commit is contained in:
@@ -38,7 +38,13 @@ class MixedPdfKnowledgeIntegrationTests(unittest.TestCase):
|
||||
try:
|
||||
with (
|
||||
patch.object(database, "DATABASE_PATH", database_path),
|
||||
patch.dict(os.environ, {"KNOWLEDGE_EMBEDDING_MODEL": "granite-embedding:278m"}),
|
||||
patch.dict(
|
||||
os.environ,
|
||||
{
|
||||
"KNOWLEDGE_EMBEDDING_MODEL": "granite-embedding:278m",
|
||||
"SOVEREIGNAI_ALLOWED_WORKSPACES": str(data_dir),
|
||||
},
|
||||
),
|
||||
patch("app.main.embeddings.embed_texts", new=AsyncMock(side_effect=fake_embeddings)),
|
||||
):
|
||||
database.initialize_database()
|
||||
|
||||
Reference in New Issue
Block a user