From c8eb33bf583eca67ce81c6a66267bb3dfac85a3e Mon Sep 17 00:00:00 2001 From: Alex Crosby Date: Fri, 12 Jul 2024 17:06:49 -0700 Subject: [PATCH 1/2] added comment describing the assert statement in the test_factorial_3 test --- participants/scipy_077/pr_tutorial/tests/test_simple_function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/participants/scipy_077/pr_tutorial/tests/test_simple_function.py b/participants/scipy_077/pr_tutorial/tests/test_simple_function.py index 1982130..0672a46 100644 --- a/participants/scipy_077/pr_tutorial/tests/test_simple_function.py +++ b/participants/scipy_077/pr_tutorial/tests/test_simple_function.py @@ -4,4 +4,5 @@ def test_factorial_3(): """Simplest test for one crete case""" + # Fail and throw error if not !3==6 assert factorial(3) == 6 From 3a2c43b71fc4299b6a0854366f133c5591790631 Mon Sep 17 00:00:00 2001 From: Alex Crosby Date: Fri, 12 Jul 2024 17:12:28 -0700 Subject: [PATCH 2/2] add pytest as dependency for setuptools install --- participants/scipy_077/setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/participants/scipy_077/setup.py b/participants/scipy_077/setup.py index 3a8b920..d45712b 100644 --- a/participants/scipy_077/setup.py +++ b/participants/scipy_077/setup.py @@ -1,5 +1,10 @@ from setuptools import setup -setup(name="AHW PR tutorial", - version="0.1", - packages=["pr_tutorial", ]) +setup( + name="AHW PR tutorial", + version="0.1", + packages=[ + "pr_tutorial", + ], + install_requires=["pytest"], +)