twister: unittests: Fix unittest test_projectbuilder_gather_metrics

Fix #64606 by initializing mock object.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
This commit is contained in:
Grzegorz Chwierut 2023-10-31 11:56:09 +01:00 committed by Anas Nashif
parent 67676d8fbc
commit 0958abd2ef

View file

@ -2235,6 +2235,7 @@ def test_projectbuilder_gather_metrics(
pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
pb.options.enable_size_report = enable_size_report
pb.options.create_rom_ram_report = False
pb.options.cmake_only = cmake_only
pb.calc_size = mock.Mock()