What approach(es) have you used for lightweight Python unit-tests on App Engine?

后端 未结 6 1875
借酒劲吻你
借酒劲吻你 2021-01-30 02:16

I\'m about to embark on some large Python-based App Engine projects, and I think I should check with Stack Overflow\'s \"wisdom of crowds\" before committing to a unit-testing s

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 02:51

    You don't need to write your own stubs - the SDK includes them, since they're what it uses to emulate the production APIs. Not all of them are suitable for use in unit-tests, but most are. Check out this code for an example of the setup/teardown code you need to make use of the built in stubs.

提交回复
热议问题