Skip to content

Commit a770692

Browse files
committed
happy pre-commit
1 parent 80f5077 commit a770692

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/templates/kuttl/smoke/test-regorule.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,19 @@
2727
# --> {'hello': True}
2828

2929
# url = 'http://test-opa-svc:8081/v1/data/test'
30-
response = requests.post(args['url'], json={"input": {}}).json()
30+
response = requests.post(args["url"], json={"input": {}}).json()
3131

32-
if "result" in response and "hello" in response["result"] and response["result"]["hello"]:
32+
if (
33+
"result" in response
34+
and "hello" in response["result"]
35+
and response["result"]["hello"]
36+
):
3337
print("Test successful!")
3438
exit(0)
3539
else:
36-
print("Error: received " + str(response) + " - expected: {'result': {'hello': True}}")
40+
print(
41+
"Error: received "
42+
+ str(response)
43+
+ " - expected: {'result': {'hello': True}}"
44+
)
3745
exit(-1)

0 commit comments

Comments
 (0)