ch01: automated tests · lesrose/fluentpython-code@64e8bdc · GitHub
Skip to content

Commit 64e8bdc

Browse files
committed
ch01: automated tests
1 parent d5be725 commit 64e8bdc

5 files changed

Lines changed: 64 additions & 6 deletions

File tree

01-data-model/README.md

Lines changed: 25 additions & 0 deletions

01-data-model/README.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

01-data-model/data-model.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
{
141141
"data": {
142142
"text/plain": [
143-
"Card(rank='Q', suit='clubs')"
143+
"Card(rank='6', suit='diamonds')"
144144
]
145145
},
146146
"execution_count": 6,
@@ -149,6 +149,7 @@
149149
}
150150
],
151151
"source": [
152+
"# NBVAL_IGNORE_OUTPUT\n",
152153
"from random import choice\n",
153154
"\n",
154155
"choice(deck)"
@@ -598,7 +599,7 @@
598599
"name": "python",
599600
"nbconvert_exporter": "python",
600601
"pygments_lexer": "ipython3",
601-
"version": "3.7.2"
602+
"version": "3.8.0"
602603
}
603604
},
604605
"nbformat": 4,

01-data-model/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
python3 -m doctest frenchdeck.doctest
3+
python3 -m doctest vector2d.py
4+
pytest -q --nbval

01-data-model/vector2d.py

Lines changed: 32 additions & 0 deletions

0 commit comments

Comments
 (0)