Skip to content

Commit 50e2eec

Browse files
authored
Update test.py
1 parent eaefd88 commit 50e2eec

File tree

1 file changed

+3
-3
lines changed
  • exercises/08-Function-that-returns

1 file changed

+3
-3
lines changed

exercises/08-Function-that-returns/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import io, sys, pytest, os, re, mock
22

3-
@pytest.mark.it("Call the function dollar_to_euro passing the 137 dollars to get the amount in Euro")
3+
@pytest.mark.it("Call the function dollar_to_euro passing 137 dollars to get the amount in Euros")
44
def test_declare_variable():
55
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
66
with open(path, 'r') as content_file:
@@ -9,7 +9,7 @@ def test_declare_variable():
99
assert bool(regex.search(content)) == True
1010

1111

12-
@pytest.mark.it("Call the function euro_to_yen passing the Euro converted amount to get the amount in Yen")
12+
@pytest.mark.it("Call the function euro_to_yen passing the Euros converted amount to get the amount in Yen")
1313
def test_euro_to_yen():
1414
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
1515
with open(path, 'r') as content_file:
@@ -22,4 +22,4 @@ def test_euro_to_yen():
2222
def test_for_file_output(capsys):
2323
import app
2424
captured = capsys.readouterr()
25-
assert "15137.609500000002\n" == captured.out
25+
assert "20159.139\n" == captured.out

0 commit comments

Comments
 (0)