# Python Testing with pytest: tinydb needs pinned to 3.15.1 (code download)

**URL:** <https://forum.devtalk.com/t/python-testing-with-pytest-tinydb-needs-pinned-to-3-15-1-code-download/1269>\
**Category:** PragProg Customers\
**Tags:** book-python-testing-with-pytest, errata\
**Created:** [5 August 2020 17:32 UTC](https://forum.devtalk.com/t/python-testing-with-pytest-tinydb-needs-pinned-to-3-15-1-code-download/1269 "2020-08-05T17:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianokken](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brianokken/32/846_2.png) [@brianokken](https://forum.devtalk.com/u/brianokken)\
**Post date:** [5 August 2020 17:32 UTC](https://forum.devtalk.com/t/python-testing-with-pytest-tinydb-needs-pinned-to-3-15-1-code-download/1269/1 "2020-08-05T17:32:27Z")

</div>

Pin the tinydb version to 3.15.1.  
The API changed in the 4.x series of tinydb.  
However, the change doesn’t affect you learning pytest.

- This is a change to `tasks_proj/setup.py`:

`install_requires=['click==7.1.2', 'tinydb==3.15.1'],`

- and again in `ch7/tasks_proj_v2/setup.py`:

`install_requires=['click==7.1.2', 'tinydb==3.15.1', 'pytest', 'pytest-mock'],`
