浏览代码

Update test_provider.py

Chris Pietschmann 2 月之前
父节点
当前提交
f674e28263
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/test/apps/webui/storage/test_provider.py

+ 1 - 1
backend/open_webui/test/apps/webui/storage/test_provider.py

@@ -292,7 +292,7 @@ class TestAzureStorageProvider:
         self.file_bytesio_empty = io.BytesIO()
         self.file_bytesio_empty = io.BytesIO()
         super().__init__()
         super().__init__()
 
 
-    @pytest.fixture
+    @pytest.fixture(scope="class")
     def setup(self, monkeypatch):
     def setup(self, monkeypatch):
         """Mock BlobServiceClient and BlobContainerClient for local testing"""
         """Mock BlobServiceClient and BlobContainerClient for local testing"""
         # Create mock Blob Service Client
         # Create mock Blob Service Client