Skip to content

Commit

Permalink
Update test_valid_parentheses.py
Browse files Browse the repository at this point in the history
kyu_7/valid_parentheses/test_valid_parentheses.py:108:25: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
kyu_7/valid_parentheses/test_valid_parentheses.py:130:26: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
kyu_7/valid_parentheses/test_valid_parentheses.py:132:29: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
kyu_7/valid_parentheses/test_valid_parentheses.py:154:26: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
kyu_7/valid_parentheses/test_valid_parentheses.py:156:29: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
  • Loading branch information
ikostan committed Nov 30, 2024
1 parent 4f9d623 commit 2c6a0e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kyu_7/valid_parentheses/test_valid_parentheses.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def test_valid_parentheses_empty_string(self):
'<h3>Test Description:</h3>'
"<p>Should return True for empty strings.</p>")
# pylint: enable=R0801
with allure.step(f"Enter empty test string and verify"
f"that the function returns True."):
with allure.step("Enter empty test string and verify"
"that the function returns True."):
result: bool = valid_parentheses('')
print_log(test_data='', result=result)
self.assertTrue(result)
Expand All @@ -129,8 +129,8 @@ def test_valid_parentheses_large_valid(self):
# pylint: enable=R0801
with (allure.step(f"Enter a large valid test string and verify"

Check notice on line 130 in kyu_7/valid_parentheses/test_valid_parentheses.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/valid_parentheses/test_valid_parentheses.py#L130

Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
f"that the function returns True.")):
test_str: str = (f'()(()()()()(()())((()()())((((())(()))(()))((('
f')(())((()))((())()))(())(()()(())))())))')
test_str: str = ('()(()()()()(()())((()()())((((())(()))(()))((('
')(())((()))((())()))(())(()()(())))())))')
result: bool = valid_parentheses(test_str)
print_log(test_str=test_str, result=result)
self.assertTrue(result)
Expand All @@ -153,8 +153,8 @@ def test_valid_parentheses_large_invalid(self):
# pylint: enable=R0801
with (allure.step(f"Enter a large invalid test string and verify"

Check notice on line 154 in kyu_7/valid_parentheses/test_valid_parentheses.py

View check run for this annotation

codefactor.io / CodeFactor

kyu_7/valid_parentheses/test_valid_parentheses.py#L154

Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
f"that the function returns False.")):
test_str: str = (f'(((())(()()(()()))(())())(((()(()))))()(()()(('
f'))))()()()(()())(()()(()()()(()()()((()())))))())()')
test_str: str = ('(((())(()()(()()))(())())(((()(()))))()(()()(('
'))))()()()(()())(()()(()()()(()()()((()())))))())()')
result: bool = valid_parentheses(test_str)
print_log(test_str=test_str, result=result)
self.assertFalse(result)

0 comments on commit 2c6a0e6

Please sign in to comment.