Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fdc92bc

Browse files
Update test.py
1 parent 057d98a commit fdc92bc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎exercises/04.1-count_on/test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
import io, sys, os, pytest, re
22
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
33

4-
@pytest.mark.it("Cool !!! 😎 You have the all data-type object")
4+
@pytest.mark.it("You have to print the value of the variable 'hello' in the console")
55
def test_all_data_type(capsys, app):
66
app()
77
captured = capsys.readouterr()
88
assert "[[2, 1], {'name': 'juan'}]\n" in captured.out
99

10-
@pytest.mark.it("Use the for loop")
10+
@pytest.mark.it("You have to use a for loop")
1111
def test_for_loop():
1212
with open(path, 'r') as content_file:
1313
content = content_file.read()
1414
regex = re.compile(r"for(\s)")
1515
assert bool(regex.search(content)) == True
1616

17-
@pytest.mark.it("Use if statement")
17+
@pytest.mark.it("You have to use an if statement")
1818
def test_if():
1919
with open(path, 'r') as content_file:
2020
content = content_file.read()
2121
regex = re.compile(r"if(\s)")
2222
assert bool(regex.search(content)) == True
23-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /