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:
@ -43,6 +43,7 @@ def get_default_opts():
|
|||||||
opts.trim = 22118
|
opts.trim = 22118
|
||||||
opts.eeprom_image = None
|
opts.eeprom_image = None
|
||||||
opts.debug = False
|
opts.debug = False
|
||||||
|
opts.version = False
|
||||||
opts.code_image.name = "test.bin"
|
opts.code_image.name = "test.bin"
|
||||||
opts.code_image.read.return_value = b"123456789"
|
opts.code_image.read.return_value = b"123456789"
|
||||||
return opts
|
return opts
|
||||||
|
Reference in New Issue
Block a user