add django.contrib.contenttypes to all tests by default

This commit is contained in:
Maxim Kurnikov
2019-07-18 19:36:56 +03:00
parent 07a9bcd4cb
commit bba6f769b5
4 changed files with 2 additions and 7 deletions

View File

@@ -8,7 +8,6 @@
Tag.objects.create(content_object=myuser)
reveal_type(Tag().content_object) # N: Revealed type is 'Union[Any, None]'
installed_apps:
- django.contrib.contenttypes
- myapp
files:
- path: myapp/__init__.py

View File

@@ -25,7 +25,6 @@
reveal_type(book.publisher_id) # N: Revealed type is 'builtins.int*'
reveal_type(book.owner_id) # N: Revealed type is 'builtins.int*'
installed_apps:
- django.contrib.contenttypes
- django.contrib.auth
- myapp
files:

View File

@@ -30,7 +30,6 @@
mymodel = MyModel(user_id=1)
reveal_type(mymodel.id) # N: Revealed type is 'builtins.int*'
installed_apps:
- django.contrib.contenttypes
- django.contrib.auth
- myapp
files: