AttributeError: 'module' object has no attribute 'tests'

后端 未结 11 1845
自闭症患者
自闭症患者 2020-12-04 14:43

I\'m running this command:

python manage.py test project.apps.app1.tests

and it causes this error:

AttributeError: \

11条回答
  •  青春惊慌失措
    2020-12-04 15:38

    Got the same error, but checked all the reasons list here, did not fix my problem.

    Finally figure it out that, the reason is that the name of one method that imported but not used yet is not correct. Though it is a stupid error, it happens.

提交回复
热议问题