diff --git a/exercises/08.2-How-Much-The-Wedding-Costs/app.py b/exercises/08.2-How-Much-The-Wedding-Costs/app.py index 2d113a18..ad0a1008 100644 --- a/exercises/08.2-How-Much-The-Wedding-Costs/app.py +++ b/exercises/08.2-How-Much-The-Wedding-Costs/app.py @@ -9,4 +9,4 @@ # ❌ ↓ DON'T CHANGE THE CODE BELOW ↓ ❌ -print('Your wedding will cost $'+str(price)+' dollars') \ No newline at end of file +print('Your wedding will cost '+str(price)+' dollars') \ No newline at end of file diff --git a/exercises/08.2-How-Much-The-Wedding-Costs/test.py b/exercises/08.2-How-Much-The-Wedding-Costs/test.py index 5a93afaf..9c36c672 100644 --- a/exercises/08.2-How-Much-The-Wedding-Costs/test.py +++ b/exercises/08.2-How-Much-The-Wedding-Costs/test.py @@ -16,15 +16,15 @@ def test_for_print(capsys): regex2 = re.compile(r"elif\s*") assert bool(regex2.search(content)) == True -@pytest.mark.it("Between 101 and 199 guests sould be priced 15,000") +@pytest.mark.it("Between 101 and 200 guests sould be priced 15,000") def test__between_100_and_200(capsys, app): - with mock.patch('builtins.input', lambda x: 199): + with mock.patch('builtins.input', lambda x: 200): app() captured = capsys.readouterr() price = 15000 assert "Your wedding will cost "+str(price)+" dollars\n" in captured.out -@pytest.mark.it("Between 100 and 51 guests sould be priced 10,000") +@pytest.mark.it("Between 51 and 100 guests sould be priced 10,000") def test_between_101_and_51(capsys, app): with mock.patch('builtins.input', lambda x: 100): app() @@ -35,7 +35,7 @@ def test_between_101_and_51(capsys, app): @pytest.mark.it("Less than 50 guests sould be priced 4,000") def test_less_than_50(capsys, app): - with mock.patch('builtins.input', lambda x: 49): + with mock.patch('builtins.input', lambda x: 50): app() captured = capsys.readouterr() price = 4000