diff --git a/lectures/L08_pytest_pip.ipynb b/lectures/L08_pytest_pip.ipynb index 61be7d7..b196156 100644 --- a/lectures/L08_pytest_pip.ipynb +++ b/lectures/L08_pytest_pip.ipynb @@ -758,7 +758,7 @@ "\n", "## Simple pytest example\n", "\n", - "Create a file named `test_simple.py` with the following content:\n", + "Create a file named `multiply_test.py` with the following content:\n", "\n", "```python\n", "def multiply(a, b):\n", diff --git a/lectures/multiply_test.py b/lectures/multiply_test.py new file mode 100644 index 0000000..dc3efd5 --- /dev/null +++ b/lectures/multiply_test.py @@ -0,0 +1,8 @@ +def multiply(a, b): + return a*b + +def test_multiply(): + assert multiply(4, 6) == 24 + +def test_multiply2(): + assert multiply(5, 6) == 2 \ No newline at end of file