From 2c6a0e64c5d3ba7d6fb300370ea9b90e9497cf8a Mon Sep 17 00:00:00 2001 From: Egor Kostan Date: Fri, 29 Nov 2024 22:55:54 -0800 Subject: [PATCH] Update test_valid_parentheses.py 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) --- kyu_7/valid_parentheses/test_valid_parentheses.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kyu_7/valid_parentheses/test_valid_parentheses.py b/kyu_7/valid_parentheses/test_valid_parentheses.py index 2e0cda2083a..48ddcb9d015 100644 --- a/kyu_7/valid_parentheses/test_valid_parentheses.py +++ b/kyu_7/valid_parentheses/test_valid_parentheses.py @@ -105,8 +105,8 @@ def test_valid_parentheses_empty_string(self): '

Test Description:

' "

Should return True for empty strings.

") # 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) @@ -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" 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) @@ -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" 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)