From 4ea9a0eb733578377ac7a6ba01a01b6c8e4b97e4 Mon Sep 17 00:00:00 2001 From: Ernesto Gonzalez <60261375+UmiKami@users.noreply.github.com> Date: Mon, 11 Sep 2023 07:37:36 +0000 Subject: [PATCH 1/2] fixed test description --- exercises/08.2-How-Much-The-Wedding-Costs/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From f327cb457908ef2e02b97b07260490c9dbca1b13 Mon Sep 17 00:00:00 2001 From: Ernesto Gonzalez <60261375+UmiKami@users.noreply.github.com> Date: Mon, 11 Sep 2023 07:42:04 +0000 Subject: [PATCH 2/2] fixed default code to remove "$" sign --- exercises/08.2-How-Much-The-Wedding-Costs/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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