diff --git a/api/src/opentrons/config/advanced_settings.py b/api/src/opentrons/config/advanced_settings.py index 9b53f893589..f4c75701901 100644 --- a/api/src/opentrons/config/advanced_settings.py +++ b/api/src/opentrons/config/advanced_settings.py @@ -250,7 +250,7 @@ class Setting(NamedTuple): ), robot_type=[RobotTypeEnum.OT2, RobotTypeEnum.FLEX], internal_only=True, - ) + ), ] if ( @@ -719,6 +719,7 @@ def _migrate31to32(previous: SettingsMap) -> SettingsMap: newmap["enableOEMMode"] = None return newmap + def _migrate32to33(previous: SettingsMap) -> SettingsMap: """Migrate to version 33 of the feature flags file. diff --git a/api/src/opentrons/config/feature_flags.py b/api/src/opentrons/config/feature_flags.py index b88e741b3dc..e9772a01ee8 100644 --- a/api/src/opentrons/config/feature_flags.py +++ b/api/src/opentrons/config/feature_flags.py @@ -79,6 +79,4 @@ def enable_error_recovery_experiments() -> bool: def enable_performance_metrics(robot_type: RobotTypeEnum) -> bool: - return advs.get_setting_with_env_overload( - "enablePerformanceMetrics", robot_type - ) + return advs.get_setting_with_env_overload("enablePerformanceMetrics", robot_type) diff --git a/api/tests/opentrons/config/test_advanced_settings.py b/api/tests/opentrons/config/test_advanced_settings.py index a937b1498a5..17122fca0dd 100644 --- a/api/tests/opentrons/config/test_advanced_settings.py +++ b/api/tests/opentrons/config/test_advanced_settings.py @@ -33,6 +33,7 @@ def mock_settings_values_flex() -> Dict[str, Optional[bool]]: if RobotTypeEnum.FLEX in s.robot_type and not s.internal_only } + @pytest.fixture def mock_settings_values_flex_all() -> Dict[str, Optional[bool]]: return {