摘要: ''' myunittest.py ''' import importlib import logging class TestCase(object): def __init__(self, name): self.name = name def setup(self): pass def tea 阅读全文
posted @ 2020-07-05 20:52 该显示昵称已被使用了 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 基本使用 import unittest class Test(unittest.TestCase): @classmethod def setUpClass(cls): print("这是类方法前置条件") @classmethod def tearDownClass(cls): print("这 阅读全文
posted @ 2020-07-05 20:42 该显示昵称已被使用了 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 有些地方,在 Markdown 语法中,两个空行才是换行,不能换行的同学多加个回车应该就好啦。 flow st=>start: 闹钟响起 op=>operation: 与床板分离 cond=>condition: 分离成功? e=>end: 快乐的一天 st->op->cond cond(yes)- 阅读全文
posted @ 2020-07-05 17:55 该显示昵称已被使用了 阅读(152) 评论(0) 推荐(0) 编辑
摘要: ORM快速使用 # 1 获取数据库信息,放回queryset到前端模板 from report.models import ReportInfo def reportDetail(request): return render(request, "app/report.html", {"report 阅读全文
posted @ 2020-07-05 17:50 该显示昵称已被使用了 阅读(102) 评论(0) 推荐(0) 编辑