Skip to content

Commit d13293e

Browse files
Fix inconsistencies on validation return
1 parent cb273a3 commit d13293e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared/python/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def run(command: str, ok_message: str = '', error_message: str = '', print_outpu
630630
validate_http_verb = lambda val: HTTP_VERB(val)
631631
validate_sku = lambda val: APIM_SKU(val)
632632

633-
def validate_infrastructure(infra: INFRASTRUCTURE, supported_infras: list[INFRASTRUCTURE]) -> bool:
633+
def validate_infrastructure(infra: INFRASTRUCTURE, supported_infras: list[INFRASTRUCTURE]) -> None:
634634
"""
635635
Validate that the provided infrastructure is a supported infrastructure.
636636

tests/python/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def test_extract_json_multiple_json_types():
259259
# ------------------------------
260260

261261
def test_validate_infrastructure_supported():
262-
# Should return True for supported infra
262+
# Should return None for supported infra
263263
assert utils.validate_infrastructure(INFRASTRUCTURE.SIMPLE_APIM, [INFRASTRUCTURE.SIMPLE_APIM]) is None
264264

265265
def test_validate_infrastructure_unsupported():

0 commit comments

Comments
 (0)