Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Writing Unit Tests for C Code in Python

EuroPython Conference via YouTube

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

Reviews

Start your review of Writing Unit Tests for C Code in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.