Skip to content

Commit 3e51ff2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0702c69 commit 3e51ff2

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/model_explainability/guardrails/test_guardrails.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -337,18 +337,16 @@ def test_guardrails_hf_detector_negative_detection(
337337
verify_negative_detection_response(response=response)
338338

339339
def test_guardrails_standalone_detector_endpoint(
340-
self, current_client_token, openshift_ca_bundle_file, qwen_isvc, guardrails_orchestrator_route, hap_detector_route
340+
self,
341+
current_client_token,
342+
openshift_ca_bundle_file,
343+
qwen_isvc,
344+
guardrails_orchestrator_route,
345+
hap_detector_route,
341346
):
342347
url = f"https://{guardrails_orchestrator_route.host}/{STANDALONE_DETECTION_ENDPOINT}"
343348
headers = get_auth_headers(token=current_client_token)
344-
payload = {
345-
"detectors": {
346-
"hap": {}
347-
},
348-
349-
"content": "You dotard, I really hate this stuff"
350-
351-
}
349+
payload = {"detectors": {"hap": {}}, "content": "You dotard, I really hate this stuff"}
352350

353351
response = requests.post(
354352
url=url,
@@ -365,7 +363,6 @@ def test_guardrails_standalone_detector_endpoint(
365363
assert "detections" in data
366364

367365

368-
369366
@pytest.mark.parametrize(
370367
"model_namespace, minio_pod, minio_data_connection, orchestrator_config, guardrails_orchestrator",
371368
[

0 commit comments

Comments
 (0)