mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-03 19:17:31 +08:00
add django.contrib.contenttypes to all tests by default
This commit is contained in:
1 parent
07a9bcd4cb
commit
bba6f769b5
4 files changed
+2
-7
No files matched your search
@@ -26,10 +26,8 @@ class NewSemanalDjangoTestItem(YamlTestItem):
|
||||
|
||||
installed_apps = self.parsed_test_data.get('installed_apps', None)
|
||||
if installed_apps is not None:
|
||||
if not installed_apps:
|
||||
installed_apps_as_str = '()'
|
||||
else:
|
||||
installed_apps_as_str = '(' + ','.join([repr(app) for app in installed_apps]) + ',)'
|
||||
installed_apps += ['django.contrib.contenttypes']
|
||||
installed_apps_as_str = '(' + ','.join([repr(app) for app in installed_apps]) + ',)'
|
||||
|
||||
pyproject_toml_file = File(path='pyproject.toml',
|
||||
content='[tool.django-stubs]\ndjango_settings_module=\'mysettings\'')
|
||||
|
||||
Reference in new issue
Block a user