MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / setUp

Method setUp

tests/usage/test_usage_lib.py:385–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 """Test _report_usage_once method"""
384
385 def setUp(self):
386 self.usage_message = UsageMessage()
387 self.mock_fd_config = MagicMock()
388
389 # Setup mock FDConfig
390 self.mock_fd_config.model_config.architectures = ["TestModel"]
391 self.mock_fd_config.model_config.quantization = None
392
393 @patch("fastdeploy.usage.usage_lib.current_platform")
394 @patch("fastdeploy.usage.usage_lib.cuda_device_count")

Callers

nothing calls this directly

Calls 1

UsageMessageClass · 0.90

Tested by

no test coverage detected