Nitrokey / libnitrokey

Communicate with Nitrokey devices in a clean and easy manner
https://nitrokey.com/
GNU Lesser General Public License v3.0
65 stars 34 forks source link

Support multi-line definitions in Python tests #144

Closed robinkrahl closed 5 years ago

robinkrahl commented 5 years ago

The Python unit tests currently read and interpret the C header line by line, making it impossible to import multi-line definitions. Therefore structs cannot be used in the unit tests, so certain functions cannot be tested.

szszszsz commented 5 years ago

Hi! Merged a fix to master, along with a basic test.