Coverage for mlos_bench/mlos_bench/tests/tunables/tunable_group_subgroup_test.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.7, created at 2024-11-22 01:18 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2024-11-22 01:18 +0000
1#
2# Copyright (c) Microsoft Corporation.
3# Licensed under the MIT License.
4#
5"""Tests for `TunableGroup.subgroup()` method."""
7from mlos_bench.tunables.tunable_groups import TunableGroups
10def test_tunable_group_subgroup(tunable_groups: TunableGroups) -> None:
11 """Check that the subgroup() method returns only a selection of tunable
12 parameters.
13 """
14 tunables = tunable_groups.subgroup(["provision"])
15 assert tunables.get_param_values() == {"vmSize": "Standard_B4ms"}