ch02: automated tests
This commit is contained in:
21
02-array-seq/README.md
Normal file
21
02-array-seq/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# An Array of Sequences
|
||||
|
||||
Sample code for Chapter 2 of _Fluent Python 2e_ by Luciano Ramalho (O'Reilly, 2020)
|
||||
|
||||
## Running the tests
|
||||
|
||||
### Doctests
|
||||
|
||||
Use Python's standard ``doctest`` module, for example:
|
||||
|
||||
$ python3 -m doctest bisect_demo.py -v
|
||||
|
||||
### Jupyter Notebook
|
||||
|
||||
Install ``pytest`` and the ``nbval`` plugin:
|
||||
|
||||
$ pip install pytest nbval
|
||||
|
||||
Run:
|
||||
|
||||
$ pytest --nbval
|
||||
Reference in New Issue
Block a user