From afc1abaad1652b09d24bb8b5ef66259f0741bbb9 Mon Sep 17 00:00:00 2001 From: Richard Thies Date: Tue, 28 Nov 2023 20:03:43 -0600 Subject: [PATCH 1/3] fixed home page msg --- .gitignore | 2 ++ hello_app/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cc891ab8..a10649a6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ venv/ __pycache__ *.pyc db.sqlite3 +setup.md +env \ No newline at end of file diff --git a/hello_app/views.py b/hello_app/views.py index 27c91079..eff2fb7b 100644 --- a/hello_app/views.py +++ b/hello_app/views.py @@ -3,7 +3,7 @@ def hello(request): - return HttpResponse('Go away!') + return HttpResponse('Hello everyone!') def two_plus_two(request): From 6efe5d99278861d9a493af78c3969d7f47305eaa Mon Sep 17 00:00:00 2001 From: Richard Thies Date: Tue, 28 Nov 2023 21:46:41 -0600 Subject: [PATCH 2/3] Fixed error in math.py module --- hello_app/math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/math.py b/hello_app/math.py index 4dda51a0..aec6c3ce 100644 --- a/hello_app/math.py +++ b/hello_app/math.py @@ -1,3 +1,3 @@ def addition(number1, number2): # there seems to be a bug in this code - return number1 + 9999999997 \ No newline at end of file + return number1 + number2 \ No newline at end of file From eb3d44bd49f872f1c68adf85c5428ec691db7537 Mon Sep 17 00:00:00 2001 From: Richard Thies Date: Wed, 29 Nov 2023 18:19:48 -0600 Subject: [PATCH 3/3] again --- hello_app/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/tests.py b/hello_app/tests.py index 352c53ad..94456d0b 100644 --- a/hello_app/tests.py +++ b/hello_app/tests.py @@ -7,7 +7,7 @@ class TestHelloMessage(SimpleTestCase): def test_hello_message(self): page = self.client.get('') # get the home page - self.assertContains(page, 'Hello everyone!') + self.assertContains(page, 'Hello everyone! Try Two') class TestTwoPlusTwo(SimpleTestCase):