From b19a2626a5229c60e689fdba6bc04aa577e47e1e Mon Sep 17 00:00:00 2001 From: Lorena Mesa Date: Wed, 17 Jul 2024 02:57:09 +0000 Subject: [PATCH] Fix linter issues in sample cases test --- test/sample_cases_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sample_cases_test.py b/test/sample_cases_test.py index d490cff..6fc2ece 100644 --- a/test/sample_cases_test.py +++ b/test/sample_cases_test.py @@ -25,7 +25,7 @@ def redirect_stdout(new_out): class TestHappyPath(unittest.TestCase): def test_fails_to_create_identicon_with_input_text_missing(self): with self.assertRaises(subprocess.CalledProcessError) as context: - error_received = subprocess.check_output(f'python3 {PROJECT_ROOT}/main.py', shell=True, stderr=subprocess.STDOUT).strip() + subprocess.check_output(f'python3 {PROJECT_ROOT}/main.py', shell=True, stderr=subprocess.STDOUT).strip() self.assertIn(context.exception.message, "main.py: error: the following arguments are required: -s/--string") def test_creates_identicon_when_input_text_provided(self):