Unit Testing isn't just for traditional applications. Testing is useful in data applications as well, from testing assumptions about the underlying structure of information, to testing your knowledge of math libraries.
In this tutorial we'll showing you how to use pytest from scratch. By the end you'll know enough to be able to use it in your next project.
This tutorial is intended to take someone unfamiliar with testing, and by the end have them writing functional and useful tests. The tutorial will be a series of exercises introducing various concepts in testing. By the end you should have a good idea of where and how to implement testing in your next project
This will be an interactive tutorial where attendees are encouraged to bring their laptops. Code will be provided, please be sure to install python 3 and pytest before the tutorial to avoid issues at the tutorial itself.
A git repository with all the code used will be made available during the tutorial.
We'll be answering the questions
What is testing? Why is it useful in general? Why is it useful in a data context?
What are the available libraries for python?
How do I structure my first test? How do I run a test?
What are fixtures? How do I use them? When should I use them?
What are the more advanced features of pytest? What should I look for, for future learning?