Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover how to leverage Python's powerful unit testing capabilities for C code in this informative EuroPython Conference talk. Learn to combine CFFI and pycparser to create Python unit tests for C code without writing any C in the test cases. Explore techniques for creating mock functions in Python to handle external dependencies in C code. Gain insights into the challenges of mixing Python and C, along with strategies to overcome them. Follow along as the speaker presents multiple examples, discusses potential drawbacks, and addresses audience questions to help you implement this approach in your own projects.
Syllabus
Introduction
First example
Second example
Third example
Fourth example
Drawbacks
Questions
Taught by
EuroPython Conference