首页 > 解决方案 > 即使我在 Windows 10 上有文件 tests.py,也可以在 0.000 秒内运行 0 次测试

问题描述

我安装了我的应用程序

INSTALLED_APPS = [
  ...
  "table_booker.apps.TableBookerConfig",
  "django_nose",
]

我的 tests.py 文件

from django.test import TestCase

class AnimalTests(TestCase):
    def test_name(self):
        self.assertEqual(True, False)

当我尝试使用

python manage.py test

我在 0.000 秒内完成了 0 次测试

在此处输入图像描述

标签: pythondjango

解决方案


推荐阅读