Skip to content

Commit a608e12

Browse files
LCORE-1279: fix linter issues in test_suid.py
1 parent 305c9df commit a608e12

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/unit/utils/test_suid.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ def test_check_suid_prompt_wrong_length(self) -> None:
134134
assert suid.check_suid_prompt("pmpt_") is False
135135
assert suid.check_suid_prompt("pmpt_12345") is False
136136
# 47 hex chars (one short)
137-
assert suid.check_suid_prompt("pmpt_e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3") is False
137+
short_hex = "e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3"
138+
assert suid.check_suid_prompt(f"pmpt_{short_hex}") is False
138139
# 49 hex chars (one extra)
139-
assert suid.check_suid_prompt("pmpt_e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3c1") is False
140+
long_hex = "e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3c1"
141+
assert suid.check_suid_prompt(f"pmpt_{long_hex}") is False
140142

141143
def test_check_suid_prompt_non_hex_chars(self) -> None:
142144
"""Test that check_suid_prompt returns False for non-hex characters."""
@@ -149,4 +151,5 @@ def test_check_suid_prompt_cross_format(self) -> None:
149151
"""Test that check_suid_prompt rejects other ID formats."""
150152
assert suid.check_suid_prompt("123e4567-e89b-12d3-a456-426614174000") is False
151153
assert suid.check_suid_prompt("modr-12345") is False
152-
assert suid.check_suid_prompt("conv_e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3c") is False
154+
valid_hex = "e6afd7aaa97b49ce8f4f96a801b07893d9cb784d72e53e3c"
155+
assert suid.check_suid_prompt(f"conv_{valid_hex}") is False

0 commit comments

Comments
 (0)