-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from bento-platform/feat/delete-drs-object
feat: DRS object deletion
- Loading branch information
Showing
12 changed files
with
365 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
__all__ = ["Backend", "FakeBackend"] | ||
__all__ = ["Backend"] | ||
|
||
|
||
# noinspection PyUnusedLocal | ||
class Backend(ABC): | ||
@abstractmethod | ||
def save(self, current_location: str, filename: str) -> str: # pragma: no cover | ||
def __init__(self, config: dict): # pragma: no cover | ||
pass | ||
|
||
@abstractmethod | ||
def save(self, current_location: str, filename: str) -> str: # pragma: no cover | ||
pass | ||
|
||
class FakeBackend(Backend): | ||
""" | ||
For the tests | ||
""" | ||
|
||
def save(self, current_location: str, filename: str) -> str: | ||
return current_location | ||
@abstractmethod | ||
def delete(self, location: str) -> None: # pragma: no cover | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.