瀏覽代碼

fix: InvalidExportPath should not be raised at the MockFSRepo level

trgiangdo 1 年之前
父節點
當前提交
3de71c6bb1
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      tests/core/repository/test_repositories.py

+ 0 - 7
tests/core/repository/test_repositories.py

@@ -16,9 +16,6 @@ import shutil
 
 
 import pytest
 import pytest
 
 
-from taipy.config.config import Config
-from taipy.core.exceptions.exceptions import InvalidExportPath
-
 from .mocks import MockConverter, MockFSRepository, MockModel, MockObj, MockSQLRepository
 from .mocks import MockConverter, MockFSRepository, MockModel, MockObj, MockSQLRepository
 
 
 
 
@@ -165,8 +162,4 @@ class TestRepositoriesStorage:
         r._export("uuid", export_path)
         r._export("uuid", export_path)
         assert pathlib.Path(os.path.join(export_path, "mock_model/uuid.json")).exists()
         assert pathlib.Path(os.path.join(export_path, "mock_model/uuid.json")).exists()
 
 
-        if mock_repo == MockFSRepository:
-            with pytest.raises(InvalidExportPath):
-                r._export("uuid", Config.core.storage_folder)
-
         shutil.rmtree(export_path, ignore_errors=True)
         shutil.rmtree(export_path, ignore_errors=True)