Skip to content

Commit

Permalink
tests: add placeholders for unlink/rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Dec 28, 2023
1 parent 1e2a6c6 commit 9a988d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dvc_hdfs/tests/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ def read_bytes(self):
with _hdfs.open_input_stream(self.path) as fobj:
return fobj.read()

def unlink(self, missing_ok: bool = False) -> None:
raise NotImplementedError

def rmdir(self, recursive: bool = True) -> None:
raise NotImplementedError

@property
def fs_path(self):
return self.path.lstrip("/")

0 comments on commit 9a988d5

Please sign in to comment.