Skip to content

Commit

Permalink
Fix linter issues in sample cases test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorena Mesa committed Jul 17, 2024
1 parent f91640e commit b19a262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sample_cases_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b19a262

Please sign in to comment.