Skip to content

Commit

Permalink
Set one of cpus' supportsGetDramEnergyConsumption to True
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonsyh committed Jan 14, 2025
1 parent ef48d88 commit 5d99d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_energy_histogram(

# Ensure mocked CPUs have the required method
mock_get_cpus.return_value.cpus = [
MagicMock(supportsGetDramEnergyConsumption=MagicMock(return_value=False)),
MagicMock(supportsGetDramEnergyConsumption=MagicMock(return_value=True)),
MagicMock(supportsGetDramEnergyConsumption=MagicMock(return_value=False)),
]

Expand Down

0 comments on commit 5d99d99

Please sign in to comment.