From 3feecfa2f0d9cd1978d23c3252b546fdc8f02f86 Mon Sep 17 00:00:00 2001 From: Danny Chiao Date: Sun, 13 Feb 2022 20:15:01 -0500 Subject: [PATCH] fix test Signed-off-by: Danny Chiao --- sdk/python/feast/infra/online_stores/datastore.py | 3 +-- sdk/python/feast/infra/online_stores/dynamodb.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/python/feast/infra/online_stores/datastore.py b/sdk/python/feast/infra/online_stores/datastore.py index 5a8d4b7180..a29a8393e2 100644 --- a/sdk/python/feast/infra/online_stores/datastore.py +++ b/sdk/python/feast/infra/online_stores/datastore.py @@ -336,7 +336,6 @@ class DatastoreTable(InfraObject): """ project: str - name: str project_id: Optional[str] namespace: Optional[str] @@ -347,8 +346,8 @@ def __init__( project_id: Optional[str] = None, namespace: Optional[str] = None, ): + super().__init__(name) self.project = project - self.name = name self.project_id = project_id self.namespace = namespace diff --git a/sdk/python/feast/infra/online_stores/dynamodb.py b/sdk/python/feast/infra/online_stores/dynamodb.py index 46592bf2a3..c9ef8d5d67 100644 --- a/sdk/python/feast/infra/online_stores/dynamodb.py +++ b/sdk/python/feast/infra/online_stores/dynamodb.py @@ -227,11 +227,10 @@ class DynamoDBTable(InfraObject): region: The region of the table. """ - name: str region: str def __init__(self, name: str, region: str): - self.name = name + super().__init__(name) self.region = region def to_infra_object_proto(self) -> InfraObjectProto: