本文整理汇总了Python中peachyprinter.api.calibration_api.CalibrationAPI.show_test_pattern方法的典型用法代码示例。如果您正苦于以下问题:Python CalibrationAPI.show_test_pattern方法的具体用法?Python CalibrationAPI.show_test_pattern怎么用?Python CalibrationAPI.show_test_pattern使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类peachyprinter.api.calibration_api.CalibrationAPI
的用法示例。
在下文中一共展示了CalibrationAPI.show_test_pattern方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_change_pattern_should_change_pattern_on_controller
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_test_pattern [as 别名]
def test_change_pattern_should_change_pattern_on_controller(self, mock_HilbertGenerator, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
calibration_api.show_test_pattern("Hilbert Space Filling Curve")
self.mock_controller.change_generator.assert_called_with(self.mock_hilbert_generator)
示例2: test_change_pattern_should_raise_exception_when_test_patterns_unavailable
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_test_pattern [as 别名]
def test_change_pattern_should_raise_exception_when_test_patterns_unavailable(self, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
with self.assertRaises(Exception):
calibration_api.show_test_pattern("Shrubberies")
示例3: test_show_point_should_replace_controllers_transformer
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_test_pattern [as 别名]
def test_show_point_should_replace_controllers_transformer(self, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
calibration_api.show_test_pattern('Hilbert Space Filling Curve')
calibration_api.show_point()
self.mock_path_to_audio.set_transformer.assert_called_with(self.mock_tuning_transformer)
示例4: test_show_test_pattern_should_apply_calibration_should_replace_controllers_transformer
# 需要导入模块: from peachyprinter.api.calibration_api import CalibrationAPI [as 别名]
# 或者: from peachyprinter.api.calibration_api.CalibrationAPI import show_test_pattern [as 别名]
def test_show_test_pattern_should_apply_calibration_should_replace_controllers_transformer(self, mock_HomogenousTransformer, *args):
self.setup_mocks(args)
self.mock_configuration_manager.load.return_value = self.default_config
calibration_api = CalibrationAPI(self.mock_configuration_manager)
calibration_api.show_test_pattern('Hilbert Space Filling Curve')
self.mock_HomogenousTransformer.assert_called_with(
self.default_config.calibration.max_deflection,
self.default_config.calibration.height,
self.default_config.calibration.lower_points,
self.default_config.calibration.upper_points,
)
self.mock_path_to_audio.set_transformer.assert_called_with(self.mock_homogenous_transformer)