When I try to run the whole test suite it works fine, it's just that when I 
try to run this specific one it's failing on me.

On Sunday, October 8, 2017 at 1:35:33 PM UTC-7, Shun Yu wrote:
>
> I'm trying to run the "migrations.test_autodetector.AutodetectorTests" for 
> django, but I can't seem to get it to work.
> I'm using Windows 10 and Python 3.6.2.
> Below is the output I'm getting, thanks for the help!
>
> C:\Users\Shun\.virtualenvs\django-original-test\Scripts\python.exe 
> C:/Users/Shun/Desktop/django/django/tests/runtests.py 
> --settings=test_sqlite tests.migrations.test_autodetector.AutodetectorTests
> Testing against Django installed in 
> 'c:\users\shun\desktop\django\django\django'
> Traceback (most recent call last):
>   File "C:/Users/Shun/Desktop/django/django/tests/runtests.py", line 478, 
> in <module>
>     options.exclude_tags,
>   File "C:/Users/Shun/Desktop/django/django/tests/runtests.py", line 282, 
> in django_tests
>     extra_tests=extra_tests,
>   File "c:\users\shun\desktop\django\django\django\test\runner.py", line 
> 598, in run_tests
>     suite = self.build_suite(test_labels, extra_tests)
>   File "c:\users\shun\desktop\django\django\django\test\runner.py", line 
> 484, in build_suite
>     tests = self.test_loader.loadTestsFromName(label)
>   File 
> "c:\users\shun\appdata\local\programs\python\python36\Lib\unittest\loader.py",
>  
> line 153, in loadTestsFromName
>     module = __import__(module_name)
>   File 
> "c:\users\shun\desktop\django\django\tests\migrations\test_autodetector.py", 
> line 18, in <module>
>     from .models import FoodManager, FoodQuerySet
>   File "c:\users\shun\desktop\django\django\tests\migrations\models.py", 
> line 9, in <module>
>     class ModelWithCustomBase(models.Model, metaclass=CustomModelBase):
>   File "c:\users\shun\desktop\django\django\django\db\models\base.py", 
> line 108, in __new__
>     "INSTALLED_APPS." % (module, name)
> RuntimeError: Model class tests.migrations.models.ModelWithCustomBase 
> doesn't declare an explicit app_label and isn't in an application in 
> INSTALLED_APPS.
>
> Process finished with exit code 1
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c09e966f-70cb-4d2e-a305-43bb64fa3c02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to