Writing Unit Tests for C Code in Python
Offered By: EuroPython Conference via YouTube
Course Description
Overview
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
Related Courses
A Brief History of Data StorageEuroPython Conference via YouTube Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube