Update to use pytest
<8 to fix issue with nbmake
#260
Merged
pytest
<8 to fix issue with nbmake
#260