FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Redis range query materialization by kpulipati29 · Pull Request #309 · ExpediaGroup/feast · GitHub

Repository navigation

Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
fix: fix tests
  • Loading branch information
Krishna mohan Pulipati committed Oct 30, 2025
commit 2fafff5d811ec2d20a7f0f8050d75c29158d9657
39 changes: 38 additions & 1 deletion sdk/python/tests/unit/infra/online_store/test_redis.py
This file contains hidden or 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,17 +1,54 @@
import pytest
from google.protobuf.timestamp_pb2 import Timestamp
from datetime import datetime, timedelta

from feast import Entity, FeatureView, Field, FileSource, RepoConfig
from feast.infra.online_stores.redis import RedisOnlineStore
from feast.infra.online_stores.redis import RedisOnlineStore, RedisOnlineStoreConfig
from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto
from feast import Entity, Field, FileSource, RepoConfig, ValueType, utils
from feast.protos.feast.types.Value_pb2 import Value as ValueProto
from feast.protos.feast.core.SortedFeatureView_pb2 import SortOrder
from feast.infra.online_stores.helpers import _mmh3, _redis_key, _redis_key_prefix
from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto
from feast.protos.feast.types.Value_pb2 import (
BoolList,
BytesList,
DoubleList,
FloatList,
Int32List,
Int64List,
StringList,
)
from redis import Redis
from feast.sorted_feature_view import SortedFeatureView, SortKey
from feast.types import (
Array,
Bool,
Bytes,
Float32,
Float64,
Int32,
Int64,
String,
UnixTimestamp,
)
from feast.types import Int32

from tests.unit.infra.online_store.redis_online_store_creator import (
RedisOnlineStoreCreator,
)


@pytest.fixture
def redis_online_store() -> RedisOnlineStore:
return RedisOnlineStore()

@pytest.fixture(scope="session")
def redis_online_store_config():
creator = RedisOnlineStoreCreator("redis_project")
config = creator.create_online_store()
yield config
creator.teardown()

@pytest.fixture
def repo_config():
Expand Down

Back | FazBrowse Home | New Git URL