Skip to content

Commit 0748047

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 45f8932 commit 0748047

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

tests/model_explainability/guardrails/test_guardrails.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,17 +338,16 @@ def test_guardrails_hf_detector_negative_detection(
338338
verify_negative_detection_response(response=response)
339339

340340
def test_guardrails_standalone_detector_endpoint(
341-
self, current_client_token, openshift_ca_bundle_file, qwen_isvc, guardrails_orchestrator_route, hap_detector_route
341+
self,
342+
current_client_token,
343+
openshift_ca_bundle_file,
344+
qwen_isvc,
345+
guardrails_orchestrator_route,
346+
hap_detector_route,
342347
):
343348
url = f"https://{guardrails_orchestrator_route.host}/{STANDALONE_DETECTION_ENDPOINT}"
344349
headers = get_auth_headers(token=current_client_token)
345-
payload = {
346-
"detectors": {
347-
"hap": {}
348-
},
349-
350-
"content": HAP_PROMPT
351-
}
350+
payload = {"detectors": {"hap": {}}, "content": HAP_PROMPT}
352351

353352
response = requests.post(
354353
url=url,
@@ -368,7 +367,6 @@ def test_guardrails_standalone_detector_endpoint(
368367
assert score > 0.9, f"Expected score > 0.9, got {score}"
369368

370369

371-
372370
@pytest.mark.parametrize(
373371
"model_namespace, minio_pod, minio_data_connection, orchestrator_config, guardrails_orchestrator",
374372
[

0 commit comments

Comments
 (0)