Skip to content

Commit 6214420

Browse files
committed
Removed unnecessary tests
1 parent 82dd57b commit 6214420

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

tests/to_refactor/python/test_tracer_analysis_routes.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -207,36 +207,6 @@ def test_invalid_types(rest_client):
207207
assert response.status_code == 400
208208

209209

210-
def test_invalid_variable_type(rest_client):
211-
"""Test that non-string variable is rejected"""
212-
response = rest_client.post(
213-
"/us/tracer-analysis",
214-
json={
215-
"household_id": VALID_HOUSEHOLD_ID,
216-
"policy_id": VALID_POLICY_ID,
217-
"variable": INVALID_VARIABLE,
218-
},
219-
)
220-
assert response.status_code == 400
221-
assert "variable must be a string" in json.loads(response.data)["message"]
222-
223-
224-
def test_empty_payload(rest_client):
225-
"""Test that empty payload is rejected"""
226-
response = rest_client.post("/us/tracer-analysis", json={})
227-
assert response.status_code == 400
228-
assert "No payload provided" in json.loads(response.data)["message"]
229-
230-
231-
def test_null_payload(rest_client):
232-
"""Test that null payload is rejected"""
233-
response = rest_client.post(
234-
"/us/tracer-analysis", data="{}", content_type="application/json"
235-
)
236-
assert response.status_code == 400
237-
assert "No payload provided" in json.loads(response.data)["message"]
238-
239-
240210
def test_validate_tracer_analysis_payload_failure(rest_client):
241211
"""Test handling of invalid payload from validate_tracer_analysis_payload"""
242212
response = rest_client.post(

0 commit comments

Comments
 (0)