Skip to content

Commit

Permalink
Merge pull request #6 from AllenInstitute/feature/update-batch-data-s…
Browse files Browse the repository at this point in the history
…ync-models

feature/update batch data sync models
  • Loading branch information
rpmcginty authored Jun 26, 2024
2 parents 5d33812 + ef3f552 commit 4c7227b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aibs_informatics_aws_utils/efs/mount_point.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import re
from functools import cache

__all__ = [
"MountPointConfiguration",
Expand Down Expand Up @@ -375,6 +376,7 @@ def __repr__(self) -> str:
)


@cache
def detect_mount_points() -> List[MountPointConfiguration]:
mount_points: List[MountPointConfiguration] = []

Expand Down
5 changes: 5 additions & 0 deletions test/aibs_informatics_aws_utils/data_sync/test_file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
S3FileSystem,
)
from aibs_informatics_aws_utils.efs import MountPointConfiguration
from aibs_informatics_aws_utils.efs.mount_point import detect_mount_points


def any_s3_uri(bucket: str = "bucket", key: str = "key") -> S3URI:
Expand Down Expand Up @@ -282,6 +283,10 @@ def assertLocalFileSystem_partition(

@mock_sts
class EFSFileSystemTests(EFSTestsBase):
def setUp(self) -> None:
super().setUp()
detect_mount_points.cache_clear()

def setUpEFSFileSystem(
self, name: str, access_point_path: Optional[Union[str, Path]] = None
) -> Tuple[Path, EFSPath]:
Expand Down
4 changes: 4 additions & 0 deletions test/aibs_informatics_aws_utils/efs/test_mount_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

@mock_sts
class MountPointConfigurationTests(EFSTestsBase):
def setUp(self) -> None:
super().setUp()
detect_mount_points.cache_clear()

def setUpEFS(self, *access_points: Tuple[str, Path], file_system_name: Optional[str] = None):
self.create_file_system(file_system_name)
for access_point_name, access_point_path in access_points:
Expand Down

0 comments on commit 4c7227b

Please sign in to comment.