实现方法介绍,参数修改方法以及测试方法
This commit is contained in:
@ -40,8 +40,7 @@ class TestFeedingProcess(unittest.TestCase):
|
||||
patch('feeding.process.InverterController'), \
|
||||
patch('feeding.process.TransmitterController'):
|
||||
system = FeedingProcess()
|
||||
# 通过settings修改参数
|
||||
system.settings.single_batch_weight = 1500
|
||||
# 通过settings修改参数 system.settings.single_batch_weight = 1500
|
||||
system.settings.min_required_weight = 300
|
||||
system.settings.target_vehicle_weight = 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user