Skip to content

Commit fa43a77

Browse files
authored
Update test.py
1 parent ad47096 commit fa43a77

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

exercises/22-Integral/test.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import pytest,os,re,io,sys, mock, json
22

3-
@pytest.mark.it('The function generate_dict should exist')
3+
@pytest.mark.it('The function squares_dictionary should exist')
44
def test_function_existence(capsys, app):
5-
assert app.generate_dict
5+
assert app.squares_dictionary
66

77
@pytest.mark.it('The function should return a dictionary')
88
def test_typeof_return(capsys, app):
9-
assert type(app.generate_dict(7)) == type({})
9+
assert type(app.squares_dictionary(7)) == type({})
1010

11-
@pytest.mark.it('The function should return the expected output')
11+
@pytest.mark.it('The function should return the expected output. Testing with 8')
1212
def test_expected_output(capsys, app):
13-
assert app.generate_dict(8) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64}
13+
assert app.squares_dictionary(8) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64}
1414

15-
@pytest.mark.it('The function should work with other entries')
15+
@pytest.mark.it('The function should return the expected output. Testing with 5')
1616
def test_another_entry_5(capsys, app):
17-
assert app.generate_dict(5) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
18-
17+
assert app.squares_dictionary(5) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
1918

0 commit comments

Comments
 (0)