Fix programing tests

The options mock object needs to have the "version" property, otherwise
tests always pass (they just end up calling the version info).
This commit is contained in:
Grigori Goronzy 2018-09-24 22:14:29 +02:00
parent 6544699a84
commit 7d9f512b6d

View File

@ -43,6 +43,7 @@ def get_default_opts():
opts.trim = 22118
opts.eeprom_image = None
opts.debug = False
opts.version = False
opts.code_image.name = "test.bin"
opts.code_image.read.return_value = b"123456789"
return opts