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)