Skip to content

Commit b6be5f9

Browse files
authored
Update test.py
1 parent f63d74b commit b6be5f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exercises/020-factorial/test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_factorial_exists(app):
1313
def test_function_return(capsys, app):
1414
assert app.factorial(8) != None
1515

16-
@pytest.mark.it('The function must return a tuple')
16+
@pytest.mark.it('The function must return a number')
1717
def test_function_return_type(capsys, app):
1818
assert type(app.factorial(8)) == type(1)
1919

@@ -36,4 +36,5 @@ def test_factorial_1(app):
3636
try:
3737
assert app.factorial(1) == 1
3838
except AttributeError:
39-
raise AttributeError("The function 'factorial' should return the value 1")
39+
raise AttributeError("The function 'factorial' should return the value 1")
40+

0 commit comments

Comments
 (0)