【发布时间】:2020-01-21 20:01:36
【问题描述】:
项目结构
proj/
apps/
app1/
...
tests.py
...
proj/
tests.py
class UsersTestCase(APITestCase):
def setUp(self):
self.user = User.objects.get(id=3)
self.client = APIClient()
def test_users_list(self):
...
我运行 python manage.py test --settings=proj.settings.local 并看到 在 0.000 秒内运行 0 个测试
为什么?
【问题讨论】:
标签: django django-rest-framework django-testing