In our experience running the course at KCL, a significant fraction of learners is mainly using Python in Jupyter notebooks. In that scenario, the existing pytest subsection isn’t really applicable.
I think it might be helpful to start out with something like “as a first step, use a small sample data set and make sure that, after your changes, you still get the same result as before”. (I.e., effectively suggest an integration test.) And then add unit testing with pytest as a next step, for more thorough testing.