Skip to content

Commit 1ba9637

Browse files
committed
add import pytest in docs_and_testing notebook
1 parent 8cb9632 commit 1ba9637

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lessons/python/docs_and_testing.ipynb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@
218218
"Pytest supports parameterization, which allows a single unit test function to run multiple scenarios with different input values. The pytest.mark.parametrize is a decorator provided by pytest, which allows you to run the same test function multiple times with different sets of arguments. Below is an example using parameterization to test the case for invalid degree_day_factor. The pytest.raises context manager is used when we expect an exception to be raised during function execution—such as a ValueError for invalid inputs."
219219
]
220220
},
221+
{
222+
"cell_type": "code",
223+
"execution_count": null,
224+
"id": "c1989288-17f6-4a0a-843e-77f4a7fd018e",
225+
"metadata": {},
226+
"outputs": [],
227+
"source": [
228+
"import pytest"
229+
]
230+
},
221231
{
222232
"cell_type": "code",
223233
"execution_count": null,

0 commit comments

Comments
 (0)