luma.emulator icon indicating copy to clipboard operation
luma.emulator copied to clipboard

device.py only has 60% test coverage

Open thijstriemstra opened this issue 8 years ago • 3 comments

https://coveralls.io/builds/14034187/source?filename=luma%2Femulator%2Fdevice.py

thijstriemstra avatar Nov 03 '17 22:11 thijstriemstra

This could be tricky to get higher coverage, as the bits that aren't tested are pygame and the asciiart emulators. Other than running them to make sure there are no errors, I'm not sure if there are any asserts that would make sense. Open to suggestions if you've got any ideas?

rm-hull avatar Nov 03 '17 23:11 rm-hull

you can use mock to fake these modules so we at least get the coverage.. (and catch the most obvious mistakes).

thijstriemstra avatar Nov 03 '17 23:11 thijstriemstra

Looks like a branch for this ticket was started here: https://github.com/rm-hull/luma.emulator/tree/feature/test_coverage

thijstriemstra avatar Jan 03 '18 02:01 thijstriemstra