Skip to content

Commit 551d6a7

Browse files
authored
Merge pull request #88 from UmiKami/08.2-How-Much-The-Wedding-Costs
fixed test description
2 parents 31fe53c + f327cb4 commit 551d6a7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/08.2-How-Much-The-Wedding-Costs/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010

1111
# ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌
12-
print('Your wedding will cost $'+str(price)+' dollars')
12+
print('Your wedding will cost '+str(price)+' dollars')

exercises/08.2-How-Much-The-Wedding-Costs/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ def test_for_print(capsys):
1616
regex2 = re.compile(r"elif\s*")
1717
assert bool(regex2.search(content)) == True
1818

19-
@pytest.mark.it("Between 101 and 199 guests sould be priced 15,000")
19+
@pytest.mark.it("Between 101 and 200 guests sould be priced 15,000")
2020
def test__between_100_and_200(capsys, app):
21-
with mock.patch('builtins.input', lambda x: 199):
21+
with mock.patch('builtins.input', lambda x: 200):
2222
app()
2323
captured = capsys.readouterr()
2424
price = 15000
2525
assert "Your wedding will cost "+str(price)+" dollars\n" in captured.out
2626

27-
@pytest.mark.it("Between 100 and 51 guests sould be priced 10,000")
27+
@pytest.mark.it("Between 51 and 100 guests sould be priced 10,000")
2828
def test_between_101_and_51(capsys, app):
2929
with mock.patch('builtins.input', lambda x: 100):
3030
app()
@@ -35,7 +35,7 @@ def test_between_101_and_51(capsys, app):
3535

3636
@pytest.mark.it("Less than 50 guests sould be priced 4,000")
3737
def test_less_than_50(capsys, app):
38-
with mock.patch('builtins.input', lambda x: 49):
38+
with mock.patch('builtins.input', lambda x: 50):
3939
app()
4040
captured = capsys.readouterr()
4141
price = 4000

0 commit comments

Comments
 (0)