mirror of https://github.com/ARMmbed/mbed-os.git
Include `deliver_into` in Config mock
parent
dd73fa689c
commit
c7d3523a4e
|
@ -135,8 +135,12 @@ class BuildApiTests(unittest.TestCase):
|
||||||
app_config = "app_config"
|
app_config = "app_config"
|
||||||
mock_exists.return_value = False
|
mock_exists.return_value = False
|
||||||
mock_prepare_toolchain().link_program.return_value = 1, 2
|
mock_prepare_toolchain().link_program.return_value = 1, 2
|
||||||
mock_prepare_toolchain().config = namedtuple(
|
mock_prepare_toolchain().config = MagicMock(
|
||||||
"Config", "has_regions name lib_config_data")(None, None, {})
|
has_regions=None,
|
||||||
|
name=None,
|
||||||
|
lib_config_data=None,
|
||||||
|
)
|
||||||
|
mock_prepare_toolchain().config.deliver_into.return_value = (None, None)
|
||||||
|
|
||||||
build_project(self.src_paths, self.build_path, self.target,
|
build_project(self.src_paths, self.build_path, self.target,
|
||||||
self.toolchain_name, app_config=app_config, notify=notify)
|
self.toolchain_name, app_config=app_config, notify=notify)
|
||||||
|
@ -165,8 +169,12 @@ class BuildApiTests(unittest.TestCase):
|
||||||
mock_exists.return_value = False
|
mock_exists.return_value = False
|
||||||
# Needed for the unpacking of the returned value
|
# Needed for the unpacking of the returned value
|
||||||
mock_prepare_toolchain().link_program.return_value = 1, 2
|
mock_prepare_toolchain().link_program.return_value = 1, 2
|
||||||
mock_prepare_toolchain().config = namedtuple(
|
mock_prepare_toolchain().config = MagicMock(
|
||||||
"Config", "has_regions name lib_config_data")(None, None, {})
|
has_regions=None,
|
||||||
|
name=None,
|
||||||
|
lib_config_data=None,
|
||||||
|
)
|
||||||
|
mock_prepare_toolchain().config.deliver_into.return_value = (None, None)
|
||||||
|
|
||||||
build_project(self.src_paths, self.build_path, self.target,
|
build_project(self.src_paths, self.build_path, self.target,
|
||||||
self.toolchain_name, notify=notify)
|
self.toolchain_name, notify=notify)
|
||||||
|
|
Loading…
Reference in New Issue