From 20dbb84f259a1274c1cc1f44e4d232e457996db5 Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 22 Sep 2022 11:29:20 -0400 Subject: [PATCH 1/7] refactored main.py to pass tests --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2810f8a..129b8c8 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ def always_returns_true(): - return False + return True def test_always_returns_true(): From 0a97174becc1c18a412c0d51a4150cec8979c34a Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 22 Sep 2022 13:48:26 -0400 Subject: [PATCH 2/7] Added print statements --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 129b8c8..878d90e 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,8 @@ def always_returns_true(): + print("I love my cat Percy!") + print("Percy is soft and fluffy") return True From a2089394d75fa3fb6100f9c9e3a19684ab60a1fa Mon Sep 17 00:00:00 2001 From: Anika Stephen Wilbur Date: Thu, 22 Sep 2022 10:49:04 -0700 Subject: [PATCH 3/7] Anika added some code --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 129b8c8..dfc3ebc 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,8 @@ def always_returns_true(): + print("Hi Irene!") + print("GitHub is cool!") return True From 7eada0a69dd686ef943f4e14dec6d764e1c50bf3 Mon Sep 17 00:00:00 2001 From: Anika Stephen Wilbur Date: Thu, 22 Sep 2022 10:53:31 -0700 Subject: [PATCH 4/7] Change multiple lines test --- main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main.py b/main.py index 878d90e..d051dc2 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,19 @@ def always_returns_true(): print("I love my cat Percy!") print("Percy is soft and fluffy") + + + + print("How old is Percy?") + print("I wonder if Percy would be friends with my cat Bodhi!") + + return True def test_always_returns_true(): assert always_returns_true() + + + + print("Surprise! I changed this line!") From 324e169720c3c5c89838ff526d21f5958a6a7415 Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 22 Sep 2022 13:54:26 -0400 Subject: [PATCH 5/7] added cat function --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 878d90e..a0b421d 100644 --- a/main.py +++ b/main.py @@ -1,11 +1,15 @@ import pytest +CAT_COLORS = ["orange", "tabby", "black", "white", ,"gray", "calico"] def always_returns_true(): print("I love my cat Percy!") print("Percy is soft and fluffy") return True +def kitty_power(): + for cat in CAT_COLORS: + print(cat) def test_always_returns_true(): assert always_returns_true() From 7b7b75a4fe90ccd9480b41195f011df0c4d9a0a6 Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 22 Sep 2022 13:58:33 -0400 Subject: [PATCH 6/7] changed .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e90dc35..041953a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .pytest_cache -__pycache__ \ No newline at end of file +__pycache__ +venv \ No newline at end of file From 23da5d454a4b41325197bf95e8c6f9b2a9308faa Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 22 Sep 2022 14:09:14 -0400 Subject: [PATCH 7/7] Percy facts --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 35ad927..c6f84f1 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ import pytest -CAT_COLORS = ["orange", "tabby", "black", "white", ,"gray", "calico"] +CAT_COLORS = ["orange", "tabby", "black", "white", "gray", "calico"] def always_returns_true(): print("I love my cat Percy!") @@ -11,7 +11,7 @@ def always_returns_true(): print("How old is Percy?") print("I wonder if Percy would be friends with my cat Bodhi!") - + print("Percy would cower in fear") return True def kitty_power():