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 4ea9a0e

Browse files
committed
fixed test description
1 parent 31fe53c commit 4ea9a0e

File tree

1 file changed

+4
-4
lines changed
  • exercises/08.2-How-Much-The-Wedding-Costs

1 file changed

+4
-4
lines changed

‎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)

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