2012-07-16 2 views
0

는 내가 명령 줄에서이 테스트를하려고하면django.core.exceptions.ImproperlyConfigured : 라벨 테스트가있는 앱을 찾을 수 없습니까?

from django.test import TestCase 

class VideoTest(TestCase): 
    def test_video_insert(self): 
     self.assertTrue(true) 

을 다음과 같이 tests.py가 보이는, 내가

dirBeforeMyApp$python manage.py test test.VideoTest --settings=myApp.settings.dev 

할 내가 볼

myApp/ 
    apps/ 
     tests/ 
       __init__.py 
       tests.py 

같은 프로젝트 구조를 가지고 다음 오류가 발생했습니다

File "/Users/user/code/p/virtualenv/myApp/lib/python2.7/site-packages/django/db/models/loading.py", line 152, in get_app 
    raise ImproperlyConfigured("App with label %s could not be found" % app_label) 
django.core.exceptions.ImproperlyConfigured: App with label test could not be found 

나는 여기서 무엇을하지 않습니까?

답변

1

어쨌든 앱은 테스트, 복수형이라고합니다. 어쨌든 명확한 이유로 그 이름을 피하기를 원할 수도 있습니다.

관련 문제