-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove typing from requirements Move put methods to a roundtrip test class. Fix super() so this works in roundtrip tests with multiple inheritance. Signed-off-by: Joshua Hoskins <[email protected]>
- Loading branch information
1 parent
31a2605
commit 6d6c7ab
Showing
16 changed files
with
431 additions
and
404 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright Contributors to the Amundsen project. | ||
# SPDX-License-Identifier: Apache-2.0 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from metadata_service.proxy import BaseProxy | ||
from abc import abstractmethod | ||
from amundsen_common.models.table import Table, Application, Column, ProgrammaticDescription | ||
from amundsen_common.models.user import User | ||
from typing import List | ||
|
||
|
||
class RoundtripBaseProxy(BaseProxy): | ||
""" | ||
A base proxy that supports roundtrip tests | ||
""" | ||
@abstractmethod | ||
def put_user(self, *, data: User) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def post_users(self, *, data: List[User]) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def put_app(self, *, data: Application) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def post_apps(self, *, data: List[Application]) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def put_table(self, *, table: Table) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def post_tables(self, *, tables: List[Table]) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def put_column(self, *, table_uri: str, column: Column) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def put_programmatic_table_description(self, *, table_uri: str, description: ProgrammaticDescription) -> None: | ||
pass | ||
|
||
@abstractmethod | ||
def add_read_count(self, *, table_uri: str, user_id: str, read_count: int) -> None: | ||
pass |
Oops, something went wrong.