Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: cant send empty df
Signed-off-by: Rob Howley <rhowley@seatgeek.com>
  • Loading branch information
Rob Howley authored and adchia committed Sep 15, 2022
commit a4ff8c1afa1c97cbd06f08e8e875cb2225573f6f
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