Skip to content

Commit

Permalink
one more test assert
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <[email protected]>
  • Loading branch information
achals committed Jun 6, 2022
1 parent d930064 commit 9c4e939
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from feast import Feature, FileSource, RequestSource
from feast.data_format import ParquetFormat
from feast.entity import Entity
from feast.errors import FeatureViewNotFoundException
from feast.feature_view import FeatureView
from feast.field import Field
from feast.infra.registry_stores.sql import SqlRegistry
Expand Down Expand Up @@ -259,6 +260,9 @@ def location_features_from_push(inputs: pd.DataFrame) -> pd.DataFrame:

project = "project"

with pytest.raises(FeatureViewNotFoundException):
sql_registry.get_user_metadata(project, location_features_from_push)

# Register Feature View
sql_registry.apply_feature_view(location_features_from_push, project)

Expand Down

0 comments on commit 9c4e939

Please sign in to comment.