MCPcopy
hub / github.com/feast-dev/feast / simple_dataset_2

Function simple_dataset_2

sdk/python/tests/conftest.py:169–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168@pytest.fixture
169def simple_dataset_2() -> pd.DataFrame:
170 now = _utc_now()
171 ts = pd.Timestamp(now).round("ms")
172 data = {
173 "id_join_key": ["a", "b", "c", "d", "e"],
174 "float_col": [0.1, 0.2, 0.3, 4, 5],
175 "int64_col": [1, 2, 3, 4, 5],
176 "string_col": ["a", "b", "c", "d", "e"],
177 "ts_1": [
178 ts,
179 ts - timedelta(hours=4),
180 ts - timedelta(hours=3),
181 ts - timedelta(hours=2),
182 ts - timedelta(hours=1),
183 ],
184 }
185 return pd.DataFrame.from_dict(data)
186
187
188def start_test_local_server(repo_path: str, port: int):

Callers

nothing calls this directly

Calls 2

_utc_nowFunction · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected