Skip to content

Commit

Permalink
fix: revert the removal of _export() in the MockRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
trgiangdo committed Jun 19, 2024
1 parent 9cb7703 commit b06e8ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/core/_manager/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import dataclasses
import pathlib
from dataclasses import dataclass
from typing import Any, Dict, Iterable, List, Optional
from typing import Any, Dict, Iterable, List, Optional, Union

from taipy.config.config import Config
from taipy.core._manager._manager import _Manager
Expand Down Expand Up @@ -94,6 +94,9 @@ def _delete_by(self, attribute: str, value: str):
def _search(self, attribute: str, value: Any, filters: Optional[List[Dict]] = None) -> List[MockEntity]:
return self.repo._search(attribute, value, filters)

def _export(self, entity_id: str, folder_path: Union[str, pathlib.Path]):
return self.repo._export(self, entity_id, folder_path)

@property
def _storage_folder(self) -> pathlib.Path:
return pathlib.Path(Config.core.storage_folder) # type: ignore
Expand Down

0 comments on commit b06e8ac

Please sign in to comment.