Skip to content

Commit 94789fe

Browse files
committed
fix: pre-commit lint fix
1 parent 4357730 commit 94789fe

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

tests/templates/kuttl/aas-user-info/test-regorule.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def assertions(
2626
# todo: split out customAttribute assertions
2727
print(f"Testing for {username} with customAttributes {expected_attributes}")
2828
custom_attributes = result[opa_attribute]["customAttributes"]
29-
assert (
30-
custom_attributes == expected_attributes
31-
), f"got {custom_attributes}, expected: {expected_attributes}"
29+
assert custom_attributes == expected_attributes, (
30+
f"got {custom_attributes}, expected: {expected_attributes}"
31+
)
3232

3333

3434
if __name__ == "__main__":
@@ -40,9 +40,9 @@ def assertions(
4040
def make_request(payload):
4141
response = requests.post(args["url"], data=json.dumps(payload), params=params)
4242
expected_status_code = 200
43-
assert (
44-
response.status_code == expected_status_code
45-
), f"got {response.status_code}, expected: {expected_status_code}"
43+
assert response.status_code == expected_status_code, (
44+
f"got {response.status_code}, expected: {expected_status_code}"
45+
)
4646
return response.json()
4747

4848
for subject_id in ["alice", "bob"]:

tests/templates/kuttl/keycloak-user-info/test-regorule.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def assertions(
3232
# todo: split out customAttribute assertions
3333
print(f"Testing for {username} with customAttributes {expected_attributes}")
3434
custom_attributes = result[opa_attribute]["customAttributes"]
35-
assert (
36-
custom_attributes == expected_attributes
37-
), f"got {custom_attributes}, expected: {expected_attributes}"
35+
assert custom_attributes == expected_attributes, (
36+
f"got {custom_attributes}, expected: {expected_attributes}"
37+
)
3838

3939

4040
if __name__ == "__main__":
@@ -46,9 +46,9 @@ def assertions(
4646
def make_request(payload):
4747
response = requests.post(args["url"], data=json.dumps(payload), params=params)
4848
expected_status_code = 200
49-
assert (
50-
response.status_code == expected_status_code
51-
), f"got {response.status_code}, expected: {expected_status_code}"
49+
assert response.status_code == expected_status_code, (
50+
f"got {response.status_code}, expected: {expected_status_code}"
51+
)
5252
return response.json()
5353

5454
for username, groups in users_and_groups.items():

tests/templates/kuttl/smoke/20-install-test-opa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
spec:
4343
storageClassName: secrets.stackable.tech
4444
accessModes:
45-
- ReadWriteOnce
45+
- ReadWriteOnce
4646
resources:
4747
requests:
4848
storage: "1"

tests/templates/kuttl/smoke/30_test-metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22
import requests
33
import argparse
4-
import os
54

65
if __name__ == "__main__":
76
all_args = argparse.ArgumentParser()

0 commit comments

Comments
 (0)