摘要:
推荐先看视频(youtube) Ned Batchelder - Facts and Myths about Python names and values - PyCon 2015 make a new list, don't change the mutable param shadowcopy 阅读全文
摘要:
参考文章:https://semaphoreci.com/community/tutorials/getting-started-with-mocking-in-python 上文中测试 requests 也使用了 patch,但我现在是使用 httpmock,感觉更加方便。 疑问:既然我 mock 阅读全文
摘要:
注意Django的生成的默认api place_instance.restaurant 引用对应的 restaurant,为 Model `Restaurant`名称的 lower() 形式 restaurant.place,通过字段名称 `place` 引用 restaurant_instance 阅读全文