Django單元測試之Client

首先上一個簡單的測試用例(添加用戶,而後利用此用戶登錄測試並添加一個Q到系統中)python ... from myapp.models import Question,User from django.test import TestCase ... class QATest(TestCase): def setUp(self): User.objects.create
相關文章
相關標籤/搜索