You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/development/Guide_Testing.ipynb
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@
20
20
"Writing tests is work. As a matter of facts, it can be a _lot_ of work, depending on the program often more than writing the original code.\\\n",
21
21
"Luckily, it essentially follows always the same basic procedure and a there are a lot of tools and frameworks available to facilitate this work.\n",
22
22
"\n",
23
-
"In CLIMADA we use the Python in-built _test runner_ [pytest](https://docs.pytest.org/en/7.1.x/index.html) for execution of the tests."
23
+
"In CLIMADA we use the Python in-built _test runner_ [pytest](https://docs.pytest.org/en/7.1.x/index.html) for execution of the tests.\n",
24
+
"\n",
25
+
"We now leverage `pytest` fixtures for defining the data and context used by tests. Please read [how to use fixtures for testing in CLIMADA](fixture-tutorial)."
24
26
]
25
27
},
26
28
{
@@ -53,7 +55,6 @@
53
55
},
54
56
{
55
57
"cell_type": "markdown",
56
-
"id": "5819e8c6",
57
58
"metadata": {},
58
59
"source": [
59
60
"### Basic Test Procedure\n",
@@ -277,7 +278,9 @@
277
278
"source": [
278
279
"### Test Configuration\n",
279
280
"\n",
280
-
"Use the configuration file `climada.config` in the installation directory to define file paths and external resources used during tests (see the [Constants and Configuration Guide](./Guide_Configuration.ipynb))."
281
+
"Integration tests should make use of the fixtures defined in `climada/test/conftest.py`. Learn how to do that in [how to use fixtures for testing in CLIMADA](fixture-tutorial).\n",
282
+
"\n",
283
+
"Test data can also use paths defined in the configuration file `climada.config` (in the installation directory) which define file paths and external resources to be used during tests (see the [Constants and Configuration Guide](./Guide_Configuration.ipynb))."
0 commit comments