Skip to content

Commit

Permalink
fix: cant send empty df
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Howley <[email protected]>
  • Loading branch information
Rob Howley committed Sep 15, 2022
1 parent a0a7316 commit c084b1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sdk/python/tests/integration/e2e/test_python_feature_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ def test_push(python_fs_client):
@pytest.mark.integration
@pytest.mark.universal_online_stores
def test_push_source_does_not_exist(python_fs_client):
initial_temp = _get_temperatures_from_feature_server(
python_fs_client, location_ids=[1]
)[0]
response = python_fs_client.post(
"/push",
data={
"push_source_name": "push_source_does_not_exist",
"df": {},
"df": {
"location_id": [1],
"temperature": [initial_temp * 100],
"event_timestamp": [str(datetime.utcnow())],
"created": [str(datetime.utcnow())],
},
},
)
assert response.status_code == 422
Expand Down

0 comments on commit c084b1b

Please sign in to comment.