【发布时间】:2023-03-19 22:10:02
【问题描述】:
在我的测试中,我想模拟 NDB 包提供的 urlfetch,因此在测试执行期间不会发出真正的 http 请求。
urlfetch() 返回Future,所以看来我需要知道 NDB 内部结构才能正确模拟它......我还以为我可以以某种方式模拟 google.appengine.api.urlfetch.create_rpc()......但我没有取得任何进展,所以远...
我该怎么做?
谢谢。
【问题讨论】:
标签: google-app-engine app-engine-ndb