Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Max Falk <[email protected]>
  • Loading branch information
gmdfalk committed Aug 21, 2023
1 parent 53fcf7c commit b912f4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/autoscaler/autoscaler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,16 @@ def test_autoscaler_run(dry_run, mock_autoscaler, run_timestamp):
), pytest.raises(ValueError):
mock_autoscaler.run(dry_run=dry_run, timestamp=run_timestamp)

assert mock_autoscaler.target_capacity_gauge.set.call_args == mock.call(100, {"dry_run": dry_run,
"alert_on_max_capacity": True, "pool_owner": "compute_infra"})
assert mock_autoscaler.target_capacity_gauge.set.call_args == mock.call(
100, {"dry_run": dry_run, "alert_on_max_capacity": True, "pool_owner": "compute_infra"}
)
assert mock_autoscaler.max_capacity_gauge.set.call_args == mock.call(
mock_autoscaler.pool_manager.max_capacity,
{"dry_run": dry_run, "alert_on_max_capacity": True, "pool_owner": "compute_infra"},
)
assert mock_autoscaler.setpoint_gauge.set.call_args == mock.call(0.7, {"dry_run": dry_run,
"alert_on_max_capacity": True, "pool_owner": "compute_infra"})
assert mock_autoscaler.setpoint_gauge.set.call_args == mock.call(
0.7, {"dry_run": dry_run, "alert_on_max_capacity": True, "pool_owner": "compute_infra"}
)
assert mock_autoscaler._compute_target_capacity.call_args == mock.call(resource_request)
assert mock_autoscaler.pool_manager.modify_target_capacity.call_count == 1

Expand Down

0 comments on commit b912f4b

Please sign in to comment.