def test_include_suspicious_not_in_whitelist(self):
with self.settings(APIBP_INCLUDE_WHITELIST=['.apibp', '.json']):
with self.assertRaises(SuspiciousFileOperation):
self.get_response('apiblueprint_view/tests/fixtures/parent.md')
test_includes.py 文件源码
python
阅读 13
收藏 0
点赞 0
评论 0
评论列表
文章目录