mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 04:54:48 +08:00
sort out all test folders into passable and TODOs
This commit is contained in:
@@ -47,7 +47,15 @@ IGNORED_ERROR_PATTERNS = [
|
||||
'has no attribute "vendor"',
|
||||
'Argument 1 to "get_list_or_404" has incompatible type "List',
|
||||
'error: "AdminRadioSelect" has no attribute "can_add_related"',
|
||||
re.compile('Cannot determine type of \'(objects|stuff|specimens)\''),
|
||||
'MockCompiler',
|
||||
'SessionTestsMixin',
|
||||
'Argument 1 to "Paginator" has incompatible type "ObjectList"',
|
||||
'"Type[Morsel[Any]]" has no attribute "_reserved"',
|
||||
'Argument 1 to "append" of "list"',
|
||||
'Argument 1 to "bytes"',
|
||||
'"full_clean" of "Model" does not return a value',
|
||||
'"object" not callable',
|
||||
re.compile('Cannot determine type of \'(objects|stuff|specimens|normal_manager)\''),
|
||||
re.compile(r'"Callable\[\[(Any(, )?)+\], Any\]" has no attribute'),
|
||||
re.compile(r'"HttpResponseBase" has no attribute "[A-Za-z_]+"'),
|
||||
re.compile(r'Incompatible types in assignment \(expression has type "Tuple\[\]", '
|
||||
@@ -62,6 +70,7 @@ IGNORED_ERROR_PATTERNS = [
|
||||
# TODO: remove when form <-> model plugin support is added
|
||||
re.compile(r'"Model" has no attribute "[A-Za-z_]+"'),
|
||||
re.compile(r'Argument 1 to "get_object_or_404" has incompatible type "(str|Type\[CustomClass\])"'),
|
||||
re.compile(r'"None" has no attribute "[a-zA-Z_0-9]+"'),
|
||||
]
|
||||
|
||||
# Test folders to typecheck
|
||||
@@ -198,6 +207,77 @@ TESTS_DIRS = [
|
||||
# TODO: 'multiple_database',
|
||||
'mutually_referential',
|
||||
'nested_foreign_keys',
|
||||
'no_models',
|
||||
'null_fk',
|
||||
'null_fk_ordering',
|
||||
'null_queries',
|
||||
'one_to_one',
|
||||
'or_lookups',
|
||||
'order_with_respect_to',
|
||||
'ordering',
|
||||
'pagination',
|
||||
# TODO: 'postgres_tests',
|
||||
# TODO: 'prefetch_related',
|
||||
'project_template',
|
||||
'properties',
|
||||
'proxy_model_inheritance',
|
||||
# TODO: 'proxy_models',
|
||||
# TODO: 'queries',
|
||||
'queryset_pickle',
|
||||
'raw_query',
|
||||
'redirects_tests',
|
||||
# TODO: 'requests',
|
||||
'reserved_names',
|
||||
'resolve_url',
|
||||
# TODO: 'responses',
|
||||
'reverse_lookup',
|
||||
'save_delete_hooks',
|
||||
'schema',
|
||||
# TODO: 'select_for_update',
|
||||
'select_related',
|
||||
'select_related_onetoone',
|
||||
'select_related_regress',
|
||||
# TODO: 'serializers',
|
||||
# TODO: 'servers',
|
||||
'sessions_tests',
|
||||
'settings_tests'
|
||||
'shell',
|
||||
# TODO: 'shortcuts',
|
||||
# TODO: 'signals',
|
||||
'signed_cookies_tests',
|
||||
# TODO: 'signing',
|
||||
# TODO: 'sitemaps_tests',
|
||||
'sites_framework',
|
||||
# TODO: 'sites_tests',
|
||||
# TODO: 'staticfiles_tests',
|
||||
'str',
|
||||
'string_lookup',
|
||||
'swappable_models',
|
||||
# TODO: 'syndication_tests',
|
||||
# TODO: 'template_backends',
|
||||
'template_loader',
|
||||
# TODO: 'template_tests',
|
||||
# TODO: 'test_client',
|
||||
# TODO: 'test_client_regress',
|
||||
'test_exceptions',
|
||||
# TODO: 'test_runner',
|
||||
'test_runner_apps',
|
||||
# TODO: 'test_utils',
|
||||
# TODO: 'timezones',
|
||||
'transaction_hooks',
|
||||
# TODO: 'transactions',
|
||||
'unmanaged_models',
|
||||
# TODO: 'update',
|
||||
'update_only_fields',
|
||||
'urlpatterns',
|
||||
# TODO: 'urlpatterns_reverse',
|
||||
'user_commands',
|
||||
# TODO: 'utils_tests',
|
||||
# TODO: 'validation',
|
||||
'validators',
|
||||
'version',
|
||||
# TODO: 'view_tests',
|
||||
# TODO: 'wsgi',
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user