Skip to content

Commit

Permalink
git ignore full data directory in tests
Browse files Browse the repository at this point in the history
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
  • Loading branch information
pyalex authored and kevjumba committed Apr 13, 2022
1 parent cad1156 commit 89960b2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
infra/scripts/*.conf
go/cmd/server/logging/feature_repo/data/online_store.db
go/cmd/server/logging/feature_repo/data/

# Translations
*.mo
Expand Down
2 changes: 1 addition & 1 deletion go/cmd/server/logging/feature_repo/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# production, you can use your favorite DWH, such as BigQuery. See Feast documentation
# for more info.
driver_hourly_stats = FileSource(
path="./data/driver_stats.parquet",
path="driver_stats.parquet",
event_timestamp_column="event_timestamp",
created_timestamp_column="created",
)
Expand Down
2 changes: 1 addition & 1 deletion go/cmd/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func TestGetOnlineFeaturesSqlite(t *testing.T) {
{Val: &types.Value_Int64Val{Int64Val: 1005}},
}
expectedFeatureNamesResp := []string{"driver_id", "conv_rate", "acc_rate", "avg_daily_trips"}
rows, err := test.ReadParquet(filepath.Join(dir, "feature_repo", "data", "driver_stats.parquet"))
rows, err := test.ReadParquet(filepath.Join(dir, "feature_repo", "driver_stats.parquet"))
assert.Nil(t, err)
entityKeys := map[int64]bool{1001: true, 1003: true, 1005: true}
correctFeatures := test.GetLatestFeatures(rows, entityKeys)
Expand Down

0 comments on commit 89960b2

Please sign in to comment.