Skip to content

Commit 1c89089

Browse files
authored
Update test.py
1 parent 8ce6c39 commit 1c89089

File tree

1 file changed

+3
-3
lines changed
  • exercises/01.3-Print-the-last-one

1 file changed

+3
-3
lines changed

exercises/01.3-Print-the-last-one/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'")
1212
def 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")
1919
def test_assing(app):
2020
assert app.the_last_one == app.my_stupid_list[-1]
2121

@@ -30,4 +30,4 @@ def test_use_print():
3030
def 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

0 commit comments

Comments
 (0)