Skip to content

Commit

Permalink
Sat Jan 13 15:56:20 CET 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
dgerosa committed Jan 13, 2024
1 parent d6f649c commit c56232a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/L08_pytest_pip.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions lectures/multiply_test.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c56232a

Please sign in to comment.