File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exercises/01.3-Print-the-last-one Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ def test_import_random():
88 regex = re .compile (r"import(\s)+random" )
99 assert bool (regex .search (content )) == True
1010
11- @pytest .mark .it ("Create the variable the_last_one" )
11+ @pytest .mark .it ("Create a variable called ' the_last_one' " )
1212def test_variable_exists (app ):
1313 try :
1414 app .the_last_one
1515 except AttributeError :
1616 raise AttributeError ("The variable 'the_last_one' should exist on app.py" )
1717
18- @pytest .mark .it ("Assign the last number to the variable" )
18+ @pytest .mark .it ("Assign the last element of the list to the variable" )
1919def test_assing (app ):
2020 assert app .the_last_one == app .my_stupid_list [- 1 ]
2121
@@ -30,4 +30,4 @@ def test_use_print():
3030def test_output (capsys , app ):
3131 import app
3232 captured = capsys .readouterr ()
33- assert str (app .my_stupid_list [- 1 ])+ "\n " in captured .out
33+ assert str (app .my_stupid_list [- 1 ])+ "\n " in captured .out
You can’t perform that action at this time.
0 commit comments