From 982178341edb5498592ed2ef804371ded96975a8 Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Fri, 19 Apr 2024 16:06:46 -0500 Subject: [PATCH 1/3] Add one_more_function() --- src/sample/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sample/__init__.py b/src/sample/__init__.py index 9d91c65..b16e0a7 100644 --- a/src/sample/__init__.py +++ b/src/sample/__init__.py @@ -17,3 +17,10 @@ def some_other_function(): b = 2 c = 4 return a, b, c + + +def one_more_function(): + a = 1 + b = 2 + c = 4 + return a, b, c From 20c52abdbbba194173e13c1021473e197b4a5aeb Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Fri, 19 Apr 2024 16:10:00 -0500 Subject: [PATCH 2/3] Add test for one_more_function() --- src/sample/test_sample.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sample/test_sample.py b/src/sample/test_sample.py index eb105e7..6f7c5a3 100644 --- a/src/sample/test_sample.py +++ b/src/sample/test_sample.py @@ -15,3 +15,8 @@ def test_some_function(): def test_some_other_function(): res = sample.some_other_function() assert res is not None + + +def test_one_more_function(): + res = sample.one_more_function() + assert res is not None \ No newline at end of file From 9c99a7628b5cbdae93f653a69c0bdbb3e2511c7d Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Fri, 19 Apr 2024 16:13:25 -0500 Subject: [PATCH 3/3] Try making test fail --- src/sample/test_sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sample/test_sample.py b/src/sample/test_sample.py index 6f7c5a3..a1cb875 100644 --- a/src/sample/test_sample.py +++ b/src/sample/test_sample.py @@ -18,5 +18,5 @@ def test_some_other_function(): def test_one_more_function(): - res = sample.one_more_function() + res = sample.wrong_name() assert res is not None \ No newline at end of file