Skip to content

Commit ac2b4db

Browse files
edoardob90despadam
andauthored
Fix broken test module names (#294)
* Rename test modules and notebooks * Enforce string return value * fix links in notebooks * fix functional_programming --------- Co-authored-by: Despina Adamopoulou <despoina.adamopoulou@empa.ch>
1 parent 96532e6 commit ac2b4db

38 files changed

+26
-26
lines changed
File renamed without changes.

00-intro.ipynb renamed to 00_intro.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
"name": "python",
554554
"nbconvert_exporter": "python",
555555
"pygments_lexer": "ipython3",
556-
"version": "3.10.15"
556+
"version": "3.10.17"
557557
},
558558
"vscode": {
559559
"interpreter": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@
15311531
"source": [
15321532
"Unlike lists, sets and dictionaries, tuples do not require parentheses.\n",
15331533
"Parenthesis are required only when there's some ambiguity.\n",
1534-
"We will discuss it in more details in the [`Functions`](03-functions.ipynb) chapter.\n",
1534+
"We will discuss it in more details in the [`Functions`](03_functions.ipynb) chapter.\n",
15351535
"\n",
15361536
"For now, let's just see how to define tuples without parentheses:"
15371537
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"id": "5",
9292
"metadata": {},
9393
"source": [
94-
"Python [supports](./01-basic_datatypes.ipynb#Comparison-operators) different comparison expressions.\n",
94+
"Python [supports](./01_basic_datatypes.ipynb#Comparison-operators) different comparison expressions.\n",
9595
"They are called **logical expressions** as they evaluate to either `True` or `False`.\n",
9696
"\n",
9797
"We can use these results in **conditional statements**, and have our program behave differently based on the result."
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@
889889
"id": "54",
890890
"metadata": {},
891891
"source": [
892-
"In the [Basic datatypes](./01-basic_datatypes.ipynb#Unpacking) section we saw that iterables (e.g., tuples, lists, strings) support **unpacking**. You can exploit unpacking to make a **parallel assignment**.\n",
892+
"In the [Basic datatypes](./01_basic_datatypes.ipynb#Unpacking) section we saw that iterables (e.g., tuples, lists, strings) support **unpacking**. You can exploit unpacking to make a **parallel assignment**.\n",
893893
"\n",
894894
"A reminder:\n",
895895
"\n",
@@ -1320,7 +1320,7 @@
13201320
"\n",
13211321
"<div class=\"alert alert-block alert-info\">\n",
13221322
" <h4><b>Hint</b></h4>\n",
1323-
" You need to store your <code>nums</code> in a data structure that doesn&#39;t care about ordering and discard duplicates. We have seen it on <a href=\"./01-basic_datatypes.ipynb#Set\">the first day of the tutorial</a>.\n",
1323+
" You need to store your <code>nums</code> in a data structure that doesn&#39;t care about ordering and discard duplicates. We have seen it on <a href=\"./01_basic_datatypes.ipynb#Set\">the first day of the tutorial</a>.\n",
13241324
"</div>"
13251325
]
13261326
},
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@
13691369
"metadata": {},
13701370
"outputs": [],
13711371
"source": [
1372-
"%load_ext tutorial.tests.testsuite"
1372+
"%reload_ext tutorial.tests.testsuite"
13731373
]
13741374
},
13751375
{
@@ -1450,7 +1450,7 @@
14501450
},
14511451
"outputs": [],
14521452
"source": [
1453-
"%%ipytest functional_programming\n",
1453+
"%%ipytest\n",
14541454
"\n",
14551455
"def solution_exercise2(l: \"list[int]\", k: int):\n",
14561456
" \"\"\"\n",
@@ -1502,7 +1502,7 @@
15021502
},
15031503
"outputs": [],
15041504
"source": [
1505-
"%%ipytest functional_programming\n",
1505+
"%%ipytest\n",
15061506
"\n",
15071507
"def solution_exercise3(m: \"list[list[int]]\") -> \"list[list[int]]\":\n",
15081508
" \"\"\"\n",
@@ -1549,7 +1549,7 @@
15491549
},
15501550
"outputs": [],
15511551
"source": [
1552-
"%%ipytest functional_programming\n",
1552+
"%%ipytest\n",
15531553
"\n",
15541554
"def solution_exercise4(l: \"list[list[any]]\") -> \"list[any]\":\n",
15551555
" \"\"\"\n",
@@ -1599,7 +1599,7 @@
15991599
},
16001600
"outputs": [],
16011601
"source": [
1602-
"%%ipytest functional_programming\n",
1602+
"%%ipytest\n",
16031603
"\n",
16041604
"def solution_exercise5(w: list[str]) -> list[(str, int)]:\n",
16051605
" \"\"\"\n",
@@ -1649,7 +1649,7 @@
16491649
},
16501650
"outputs": [],
16511651
"source": [
1652-
"%%ipytest functional_programming\n",
1652+
"%%ipytest\n",
16531653
"\n",
16541654
"def solution_exercise6(l: \"list[(str, int)]\") -> \"list[(str, float)]\":\n",
16551655
" pass"
@@ -1698,7 +1698,7 @@
16981698
},
16991699
"outputs": [],
17001700
"source": [
1701-
"%%ipytest functional_programming\n",
1701+
"%%ipytest\n",
17021702
"\n",
17031703
"def solution_exercise7(words: \"list[str]\") -> \"list[str]\":\n",
17041704
" pass"

0 commit comments

Comments
 (0)