Skip to content

Commit

Permalink
fix cyclic problem of python-client.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 committed Dec 27, 2024
1 parent 62170f1 commit a42677c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions clients/client-python/tests/integration/test_gvfs_with_abs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
)
from gravitino.exceptions.base import GravitinoRuntimeException
from gravitino.filesystem.gvfs_config import GVFSConfig
from gravitino.filesystem.gvfs import StorageType


logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -281,7 +279,7 @@ def test_mkdir(self):
self.assertFalse(self.fs.exists(mkdir_actual_dir))
self.assertFalse(fs.exists(mkdir_dir))

self.assertFalse(self.fs.exists(f"{StorageType.ABS.value}://{new_bucket}"))
self.assertFalse(self.fs.exists("abfss://{new_bucket}"))

def test_makedirs(self):
mkdir_dir = self.fileset_gvfs_location + "/test_mkdir"
Expand Down Expand Up @@ -309,7 +307,7 @@ def test_makedirs(self):
self.assertFalse(self.fs.exists(mkdir_actual_dir))

self.assertFalse(fs.exists(mkdir_dir))
self.assertFalse(self.fs.exists(f"{StorageType.ABS.value}://{new_bucket}"))
self.assertFalse(self.fs.exists(f"abfss://{new_bucket}"))

def test_ls(self):
ls_dir = self.fileset_gvfs_location + "/test_ls"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
Fileset,
)
from gravitino.filesystem.gvfs_config import GVFSConfig
from gravitino.filesystem.gvfs import StorageType

from tests.integration.test_gvfs_with_abs import TestGvfsWithABS


Expand Down Expand Up @@ -146,7 +144,7 @@ def test_mkdir(self):

self.assertFalse(self.fs.exists(mkdir_actual_dir))

self.assertTrue(self.fs.exists(f"{StorageType.ABS.value}://{new_bucket}"))
self.assertTrue(self.fs.exists(f"abfss://{new_bucket}"))

def test_makedirs(self):
mkdir_dir = self.fileset_gvfs_location + "/test_mkdir"
Expand Down

0 comments on commit a42677c

Please sign in to comment.