例項化Product 物件; 使用mocker.patch() 方法對get_product_status_by_id 方法進行Mock,並設定返回值; 呼叫並斷言. import pytest ...
確定! 回上一頁