From 858a3df62714ed91da29476cc47395a4260b27be Mon Sep 17 00:00:00 2001 From: Ryan Frederich Date: Wed, 21 Aug 2024 13:24:46 -0700 Subject: [PATCH] another test added --- tests/test_art.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_art.py b/tests/test_art.py index 4d9c4f9..5819053 100644 --- a/tests/test_art.py +++ b/tests/test_art.py @@ -20,7 +20,8 @@ def test_print_wave(): sys.stdout = captured_output # Redirect stdout. # Call the function - art.print_wave(1, 0, "blue") + # Color is invalid, should default to blue + art.print_wave(1, 0, "sdfsd") # Reset redirect. sys.stdout = sys.__stdout__ @@ -29,4 +30,5 @@ def test_print_wave(): output = captured_output.getvalue() # Perform assertions based on expected output - assert output + assert "[0;34m" in output, "Blue color code not found in output" + assert output, "print_wave() did not print anything"