We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da23c4b + 0c56c4b commit 3d5a8c5Copy full SHA for 3d5a8c5
exercises/13-Create-A-For-Loop/test.py
@@ -27,7 +27,11 @@ def test_for_loop():
27
def test_for_file_output(capsys):
28
captured = buffer.getvalue()
29
expected = ["I will write questions if I am stuck\n" for x in range(300)]
30
- assert captured == "".join(expected) #add \n because the console jumps the line on every print
+ expected_2 = ["Escribiré preguntas si estoy atascado\n" for x in range(300)]
31
+
32
+ hasCorrectAnswer = ((captured == "".join(expected)) or (captured == "".join(expected_2)))
33
34
+ assert hasCorrectAnswer #add \n because the console jumps the line on every print
35
36
@pytest.mark.it('Use the function print()')
37
def test_for_print():
0 commit comments