The Web framework for perfectionists with deadlines.
11221 matches across 17 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/runtests.py | 156 | def get_filtered_test_modules(start_at, start_after, gis_enabled, test_labels=None): |
| LOW | tests/generic_views/test_list.py | 66 | def test_paginated_queryset_shortdata(self): |
| LOW | tests/generic_views/test_list.py | 77 | def test_paginated_get_page_by_query_string(self): |
| LOW | tests/generic_views/test_list.py | 87 | def test_paginated_get_last_page_by_query_string(self): |
| LOW | tests/generic_views/test_list.py | 96 | def test_paginated_get_page_by_urlvar(self): |
| LOW | tests/generic_views/test_list.py | 106 | def test_paginated_page_out_of_range(self): |
| LOW | tests/generic_views/test_list.py | 111 | def test_paginated_invalid_page(self): |
| LOW | tests/generic_views/test_list.py | 116 | def test_paginated_custom_paginator_class(self): |
| LOW | tests/generic_views/test_list.py | 124 | def test_paginated_custom_page_kwarg(self): |
| LOW | tests/generic_views/test_list.py | 136 | def test_paginated_custom_paginator_constructor(self): |
| LOW | tests/generic_views/test_list.py | 143 | def test_paginated_orphaned_queryset(self): |
| LOW | tests/generic_views/test_list.py | 157 | def test_paginated_non_queryset(self): |
| LOW | tests/generic_views/test_list.py | 187 | def test_template_name_suffix(self): |
| LOW | tests/generic_views/test_list.py | 202 | def test_duplicate_context_object_name(self): |
| LOW | tests/generic_views/test_list.py | 218 | def test_invalid_get_queryset(self): |
| LOW | tests/generic_views/test_list.py | 226 | def test_paginated_list_view_does_not_load_entire_table(self): |
| LOW | tests/generic_views/test_list.py | 237 | def test_explicitly_ordered_list_view(self): |
| LOW | tests/generic_views/test_list.py | 254 | def test_paginated_list_view_returns_useful_message_on_invalid_page(self): |
| LOW | tests/generic_views/test_detail.py | 53 | def test_detail_missing_object(self): |
| LOW | tests/generic_views/test_detail.py | 57 | def test_detail_object_does_not_exist(self): |
| LOW | tests/generic_views/test_detail.py | 79 | def test_detail_by_custom_slug(self): |
| LOW | tests/generic_views/test_detail.py | 90 | def test_detail_by_pk_ignore_slug(self): |
| LOW | tests/generic_views/test_detail.py | 99 | def test_detail_by_pk_ignore_slug_mismatch(self): |
| LOW | tests/generic_views/test_detail.py | 108 | def test_detail_by_pk_and_slug(self): |
| LOW | tests/generic_views/test_detail.py | 137 | def test_template_name_suffix(self): |
| LOW | tests/generic_views/test_detail.py | 163 | def test_duplicated_context_object_name(self): |
| LOW | tests/generic_views/test_detail.py | 185 | def test_deferred_queryset_template_name(self): |
| LOW | tests/generic_views/test_detail.py | 195 | def test_deferred_queryset_context_object_name(self): |
| LOW | tests/generic_views/test_detail.py | 218 | def test_non_model_object_with_meta(self): |
| LOW | tests/generic_views/test_dates.py | 75 | def test_allow_empty_archive_view(self): |
| LOW | tests/generic_views/test_dates.py | 82 | def test_archive_view_template(self): |
| LOW | tests/generic_views/test_dates.py | 92 | def test_archive_view_template_suffix(self): |
| LOW | tests/generic_views/test_dates.py | 102 | def test_archive_view_invalid(self): |
| LOW | tests/generic_views/test_dates.py | 110 | def test_archive_view_by_month(self): |
| LOW | tests/generic_views/test_dates.py | 118 | def test_paginated_archive_view(self): |
| LOW | tests/generic_views/test_dates.py | 892 | def test_get_object_custom_queryset_numqueries(self): |
| LOW | tests/generic_views/test_dates.py | 896 | def test_datetime_date_detail(self): |
| LOW | tests/generic_views/test_dates.py | 903 | def test_aware_datetime_date_detail(self): |
| LOW | tests/generic_views/test_dates.py | 59 | def test_archive_view_context_object_name(self): |
| LOW | tests/generic_views/test_dates.py | 134 | def test_paginated_archive_view_does_not_load_entire_table(self): |
| LOW | tests/generic_views/test_dates.py | 150 | def test_datetime_archive_view(self): |
| LOW | tests/generic_views/test_dates.py | 158 | def test_aware_datetime_archive_view(self): |
| LOW | tests/generic_views/test_dates.py | 175 | def test_archive_view_custom_sorting(self): |
| LOW | tests/generic_views/test_dates.py | 190 | def test_archive_view_custom_sorting_dec(self): |
| LOW | tests/generic_views/test_dates.py | 205 | def test_archive_view_without_date_field(self): |
| LOW | tests/generic_views/test_dates.py | 224 | def test_year_view_make_object_list(self): |
| LOW | tests/generic_views/test_dates.py | 251 | def test_year_view_allow_future(self): |
| LOW | tests/generic_views/test_dates.py | 281 | def test_year_view_custom_sort_order(self): |
| LOW | tests/generic_views/test_dates.py | 303 | def test_year_view_two_custom_sort_orders(self): |
| LOW | tests/generic_views/test_dates.py | 330 | def test_year_view_invalid_pattern(self): |
| LOW | tests/generic_views/test_dates.py | 346 | def test_aware_datetime_year_view(self): |
| LOW | tests/generic_views/test_dates.py | 362 | def test_get_context_data_receives_extra_context(self, mock): |
| LOW | tests/generic_views/test_dates.py | 379 | def test_get_dated_items_not_implemented(self): |
| LOW | tests/generic_views/test_dates.py | 402 | def test_month_view_allow_empty(self): |
| LOW | tests/generic_views/test_dates.py | 425 | def test_month_view_allow_future(self): |
| LOW | tests/generic_views/test_dates.py | 453 | def test_month_view_paginated(self): |
| LOW | tests/generic_views/test_dates.py | 470 | def test_month_view_invalid_pattern(self): |
| LOW | tests/generic_views/test_dates.py | 474 | def test_previous_month_without_content(self): |
| LOW | tests/generic_views/test_dates.py | 503 | def test_month_view_get_month_from_request(self): |
| LOW | tests/generic_views/test_dates.py | 514 | def test_month_view_without_month_in_url(self): |
| 8767 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/expressions_case/tests.py | 7 | from django.core.exceptions import FieldError |
| CRITICAL | tests/model_forms/test_modelchoicefield.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/model_forms/models.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/model_forms/test_uuid.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/aggregation/tests.py | 8 | from django.core.exceptions import FieldError |
| CRITICAL | tests/composite_pk/test_update.py | 1 | from django.core.exceptions import FieldError |
| CRITICAL | tests/composite_pk/test_models.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/auth_tests/test_forms.py | 30 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/select_related/tests.py | 3 | from django.core.exceptions import FieldError |
| CRITICAL | tests/dates/tests.py | 4 | from django.core.exceptions import FieldError |
| CRITICAL | tests/foreign_object/tests.py | 6 | from django.core.exceptions import FieldError, ValidationError |
| CRITICAL | tests/model_regress/tests.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/cache/tests.py | 2095 | django.core.cache.backends.base.BaseCache.__init__(). |
| CRITICAL | tests/custom_lookups/tests.py | 5 | from django.core.exceptions import FieldError |
| CRITICAL | tests/update/tests.py | 3 | from django.core.exceptions import FieldError |
| CRITICAL | tests/constraints/tests.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/model_inheritance/tests.py | 3 | from django.core.exceptions import FieldError, ValidationError |
| CRITICAL | tests/generic_relations/tests.py | 3 | from django.core.exceptions import FieldError, FieldFetchBlocked |
| CRITICAL | tests/forms_tests/field_tests/test_urlfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_charfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | …sts/forms_tests/field_tests/test_splitdatetimefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_typedchoicefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_emailfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_uuidfield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_combofield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | …ts/forms_tests/field_tests/test_multiplechoicefield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_filepathfield.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_floatfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_multivaluefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_integerfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | …rms_tests/field_tests/test_typedmultiplechoicefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_filefield.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_datetimefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_choicefield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_datefield.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_booleanfield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_decimalfield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | …/forms_tests/field_tests/test_genericipaddressfield.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_regexfield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_timefield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_imagefield.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/field_tests/test_durationfield.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/tests/test_utils.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/tests/test_input_formats.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/tests/test_validators.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/tests/test_error_messages.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/forms_tests/tests/test_formsets.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/test_exceptions/test_validation_error.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/select_for_update/tests.py | 7 | from django.core.exceptions import FieldError |
| CRITICAL | tests/queries/test_q.py | 3 | from django.core.exceptions import FieldError |
| CRITICAL | tests/queries/test_query.py | 3 | from django.core.exceptions import FieldError |
| CRITICAL | tests/model_options/test_default_related_name.py | 1 | from django.core.exceptions import FieldError |
| CRITICAL | tests/lookup/tests.py | 7 | from django.core.exceptions import FieldError |
| CRITICAL | tests/reverse_lookup/tests.py | 1 | from django.core.exceptions import FieldError |
| CRITICAL | tests/admin_views/models.py | 9 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/admin_views/custom_has_permission_admin.py | 8 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/admin_views/forms.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/admin_views/admin.py | 13 | from django.core.exceptions import ValidationError |
| CRITICAL | tests/schema/tests.py | 8 | from django.core.exceptions import FieldError |
| CRITICAL | tests/custom_managers/tests.py | 497 | self.b1.fun_authors.through._default_manager.all(), |
| 136 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/runtests.py | 523 | # Create a specific subdirectory for the duration of the test suite. |
| MEDIUM | tests/generic_views/test_dates.py | 252 | # Create a new book in the future |
| MEDIUM | tests/mutually_referential/tests.py | 8 | # Create a Parent |
| MEDIUM | tests/model_forms/tests.py | 1640 | # Create a ModelForm, instantiate it, and check that the output is as |
| MEDIUM | tests/model_forms/tests.py | 1878 | # Create a new article, with categories, via the form. |
| MEDIUM | tests/model_forms/tests.py | 1896 | # Create a new article, with no categories, via the form. |
| MEDIUM | tests/model_forms/tests.py | 1904 | # Create a new article, with categories, via the form, but use |
| MEDIUM | tests/fixtures_regress/tests.py | 88 | # Create a new animal. Without a sequence reset, this new object |
| MEDIUM | tests/fixtures_regress/tests.py | 474 | # Create an instance of the concrete class |
| MEDIUM | tests/auth_tests/urls_admin.py | 11 | # Create a silo'd admin site for just the user/group admins. |
| MEDIUM | tests/auth_tests/test_management.py | 524 | # Creating a second user with the same email won't be caught by |
| MEDIUM | tests/sessions_tests/tests.py | 697 | # Create a session |
| MEDIUM | tests/foreign_object/tests.py | 77 | # Creating a valid membership because it has the same country has the |
| MEDIUM | tests/foreign_object/tests.py | 85 | # Creating an invalid membership because it has a different country has |
| MEDIUM | tests/foreign_object/tests.py | 99 | # Creating a to valid memberships |
| MEDIUM | tests/foreign_object/tests.py | 111 | # Creating an invalid membership |
| MEDIUM | tests/foreign_object/tests.py | 128 | # Creating a to valid memberships |
| MEDIUM | tests/foreign_object/tests.py | 142 | # Creating an invalid membership |
| MEDIUM | tests/foreign_object/tests.py | 168 | # Creating an invalid membership |
| MEDIUM | tests/generic_inline_admin/tests.py | 425 | # Create a formset with default arguments |
| MEDIUM | tests/generic_inline_admin/tests.py | 430 | # Create a formset with custom keyword arguments |
| MEDIUM | tests/template_tests/test_response.py | 173 | # Create a template response. The context is |
| MEDIUM | tests/template_tests/test_response.py | 310 | # Create a template response. The context is |
| MEDIUM | tests/template_tests/test_context.py | 277 | # Create an engine without any context processors. |
| MEDIUM | tests/generic_relations_regress/tests.py | 186 | # Create a couple of extra HasLinkThing so that the autopk value |
| MEDIUM | tests/generic_relations/tests.py | 642 | # Create a Vegetable and Mineral with the same id. |
| MEDIUM | tests/file_uploads/tests.py | 191 | # This file contains Chinese symbols and an accented char in the |
| MEDIUM | tests/file_uploads/tests.py | 892 | # Create a file with the upload directory name |
| MEDIUM | tests/mail/test_backends.py | 77 | # Create an instance of the backend_class for use in this test context |
| MEDIUM | tests/backends/tests.py | 242 | # Create an object with a manually specified PK |
| MEDIUM | tests/backends/tests.py | 631 | # Create a Reporter. |
| MEDIUM | tests/backends/tests.py | 666 | # Create an Article. |
| MEDIUM | tests/backends/tests.py | 703 | # Create an Article. |
| MEDIUM | tests/backends/tests.py | 726 | # Create an Article. |
| MEDIUM | tests/backends/tests.py | 748 | # Create an Article. |
| MEDIUM | tests/backends/base/test_base.py | 80 | # Create a new connection that will be closed during the test, and also |
| MEDIUM | tests/file_storage/tests.py | 421 | # Create a storage backend associated with the mixed case name |
| MEDIUM | tests/select_for_update/tests.py | 562 | # This method is run in a separate thread. It uses its own |
| MEDIUM | tests/select_for_update/tests.py | 634 | # This method is run in a separate thread. It uses its own |
| MEDIUM | tests/queries/tests.py | 3411 | # Create a few Orders. |
| MEDIUM | tests/basic/tests.py | 602 | # Create an Article. |
| MEDIUM | tests/basic/tests.py | 699 | # Create a very similar object |
| MEDIUM | tests/lookup/test_timefield.py | 9 | # Create a few Alarms |
| MEDIUM | tests/lookup/tests.py | 53 | # Create a few Authors. |
| MEDIUM | tests/lookup/tests.py | 56 | # Create a few Articles. |
| MEDIUM | tests/lookup/tests.py | 99 | # Create a few Tags. |
| MEDIUM | tests/many_to_one_null/tests.py | 9 | # Create a Reporter. |
| MEDIUM | tests/many_to_one_null/tests.py | 12 | # Create an Article. |
| MEDIUM | tests/many_to_one_null/tests.py | 15 | # Create an Article via the Reporter object. |
| MEDIUM | tests/many_to_one_null/tests.py | 17 | # Create an Article with no Reporter by passing "reporter=None". |
| MEDIUM | tests/contenttypes_tests/test_models.py | 285 | # Create a stale ContentType that matches the name of an existing |
| MEDIUM | tests/admin_views/tests.py | 6736 | # Create a new user to ensure that no extra permissions have been set. |
| MEDIUM | tests/schema/tests.py | 4763 | # Create the table |
| MEDIUM | tests/schema/tests.py | 4769 | # Create a row |
| MEDIUM | tests/schema/tests.py | 4787 | # Create the table |
| MEDIUM | tests/schema/tests.py | 4793 | # Create a row |
| MEDIUM | tests/schema/tests.py | 4871 | # Create the table |
| MEDIUM | tests/schema/tests.py | 4874 | # Create a row |
| MEDIUM | tests/schema/tests.py | 4956 | # Create the table |
| MEDIUM | tests/schema/tests.py | 4959 | # Create a row |
| 295 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/fixtures_regress/tests.py | 717 | [{"fields": {"main": null, "name": "Amazon"}, |
| HIGH | tests/fixtures_regress/tests.py | 719 | {"fields": {"main": null, "name": "Borders"}, |
| HIGH | tests/template_tests/test_context.py | 21 | self.assertEqual(c.push(), {}) |
| HIGH | tests/template_tests/test_context.py | 32 | with c.push(): |
| HIGH | tests/template_tests/test_context.py | 37 | with c.push(a=3): |
| HIGH | tests/template_tests/test_context.py | 54 | with c.push(Context({"a": 3})): |
| HIGH | tests/template_tests/test_context.py | 66 | c.push(Context({"b": 2})) |
| HIGH | tests/template_tests/test_context.py | 67 | c.push(Context({"c": 3, "d": {"z": "26"}})) |
| HIGH | tests/template_tests/test_context.py | 150 | a.push(Context({"z": "8"})) |
| HIGH | tests/template_tests/test_context.py | 220 | c.push({"a": 2}) |
| HIGH | tests/template_tests/test_context.py | 231 | c.push({"b": 2}) |
| HIGH | tests/template_tests/test_context.py | 124 | test_context.push() |
| HIGH | tests/template_tests/test_context.py | 147 | Context.push() with a Context argument should work. |
| HIGH | tests/db_functions/text/test_left.py | 19 | # If alias is null, set it to the first 2 lower characters of the name. |
| HIGH | tests/db_functions/text/test_right.py | 20 | # If alias is null, set it to the first 2 lower characters of the name. |
| HIGH | tests/db_functions/text/test_substr.py | 20 | # If alias is null, set to first 5 lower characters of the name. |
| HIGH | tests/inspectdb/tests.py | 596 | CREATE TABLE inspectdb_partition_parent (name text not null) |
| HIGH | tests/queries/tests.py | 3112 | self.assertSequenceEqual(Related.objects.filter(custom__isnull=True), [null]) |
| HIGH | tests/nested_foreign_keys/tests.py | 15 | # with 2 relations. The first relation may be null, while the second is |
| HIGH | tests/serializers/test_jsonl.py | 18 | '{"pk": null,"model": "serializers.category","fields": {"name": "Reference"}}', |
| HIGH | tests/serializers/test_jsonl.py | 238 | '{"pk": 1,"model": "serializers.m2mdata","fields": {"data": null}}' |
| HIGH | tests/serializers/test_json.py | 22 | "pk": null, |
| HIGH | tests/serializers/test_json.py | 270 | "fields": {"data": null} |
| HIGH | tests/many_to_one/tests.py | 150 | # Funny case - because the ForeignKey cannot be null, |
| HIGH | tests/many_to_one/tests.py | 194 | # Because the ForeignKey cannot be null, existing members of the set |
| HIGH | tests/many_to_one/tests.py | 624 | # Assigning None succeeds if field is null=True. |
| HIGH | tests/model_fields/test_field_flags.py | 221 | self.assertFalse(AllFieldsModel._meta.get_field("m2m").null) |
| HIGH | tests/model_fields/test_field_flags.py | 222 | self.assertTrue(AllFieldsModel._meta.get_field("reverse2").null) |
| HIGH | tests/model_fields/test_jsonfield.py | 190 | '[{"fields": {"value": %s}, "model": "model_fields.jsonmodel", "pk": null}]' |
| HIGH | tests/model_fields/test_jsonfield.py | 194 | ({"a": "b", "c": None}, '{"a": "b", "c": null}'), |
| HIGH | tests/model_fields/test_uuid.py | 239 | '"model": "model_fields.uuidmodel", "pk": null}]' |
| HIGH | tests/model_fields/test_uuid.py | 242 | '[{"fields": {"field": null}, ' |
| HIGH | tests/model_fields/test_uuid.py | 243 | '"model": "model_fields.nullableuuidmodel", "pk": null}]' |
| HIGH | tests/model_fields/test_durationfield.py | 56 | '"pk": null}]' |
| HIGH | tests/one_to_one/tests.py | 213 | # Assigning None succeeds if field is null=True. |
| HIGH | tests/one_to_one/tests.py | 279 | # Assigning None succeeds if field is null=True. |
| HIGH | tests/expressions/tests.py | 2851 | (AutoField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2852 | (DecimalField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2853 | (FloatField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2854 | (IntegerField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2855 | (IntegerField, Combinable.SUB, null), |
| HIGH | tests/expressions/tests.py | 2856 | (null, Combinable.ADD, IntegerField), |
| HIGH | tests/expressions/tests.py | 2858 | (DateField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2859 | (DateTimeField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2860 | (DurationField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2861 | (TimeField, Combinable.ADD, null), |
| HIGH | tests/expressions/tests.py | 2862 | (TimeField, Combinable.SUB, null), |
| HIGH | tests/expressions/tests.py | 2863 | (null, Combinable.ADD, DateTimeField), |
| HIGH | tests/expressions/tests.py | 2864 | (DateField, Combinable.SUB, null), |
| HIGH | tests/field_defaults/tests.py | 72 | self.assertEqual(obj1.null, 1.1) |
| HIGH | tests/field_defaults/tests.py | 76 | self.assertIsNone(obj2.null) |
| HIGH | tests/postgres_tests/test_ranges.py | 575 | '"bigints": null, "timestamps": ' |
| HIGH | tests/postgres_tests/test_ranges.py | 578 | '"timestamps_inner": null, ' |
| HIGH | tests/postgres_tests/test_ranges.py | 582 | '\\"bounds\\": \\"[)\\"}", "dates_inner": null }, ' |
| HIGH | tests/postgres_tests/test_ranges.py | 583 | '"model": "postgres_tests.rangesmodel", "pk": null}]' |
| HIGH | tests/postgres_tests/test_array.py | 1031 | '[{"fields": {"field": "[\\"1\\", \\"2\\", null]"}, ' |
| HIGH | tests/postgres_tests/test_array.py | 1032 | '"model": "postgres_tests.integerarraymodel", "pk": null}]' |
| HIGH | tests/postgres_tests/test_hstore.py | 392 | value = field.clean('{"a": null}') |
| HIGH | tests/gis_tests/gdal_tests/test_geom.py | 396 | self.assertTrue(d1.geos.equals(d2.geos)) |
| HIGH | tests/gis_tests/gdal_tests/test_geom.py | 398 | d1.geos.equals((a - b).geos) |
| 63 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …emplate_tests/syntax_tests/i18n/test_blocktranslate.py | 0 | simple baseline behavior with one locale for all the supported i18n constructs. |
| HIGH | …sts/template_tests/syntax_tests/i18n/test_translate.py | 0 | simple baseline behavior with one locale for all the supported i18n constructs. |
| HIGH | …late_tests/syntax_tests/i18n/test_underscore_syntax.py | 0 | simple baseline behavior with one locale for all the supported i18n constructs. |
| HIGH | tests/db_functions/datetime/test_now.py | 0 | lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| HIGH | tests/db_functions/comparison/test_coalesce.py | 0 | lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| HIGH | tests/db_functions/text/test_concat.py | 0 | lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <li><ul class="errorlist"><li>this field is required.</li></ul> username: <input type="text" name="username" maxlength=" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <li><ul class="errorlist"><li>this field is required.</li></ul> username: <input type="text" name="username" maxlength=" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <li><ul class="errorlist"><li>this field is required.</li></ul> username: <input type="text" name="username" maxlength=" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <li><ul class="errorlist"><li>this field is required.</li></ul> username: <input type="text" name="username" maxlength=" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown" selected>unknown</option> <option value="true">yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true" selected>yes</option> <option valu |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | tests/forms_tests/tests/test_forms.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | …sts/forms_tests/widget_tests/test_nullbooleanselect.py | 0 | <select name="is_cool"> <option value="unknown">unknown</option> <option value="true">yes</option> <option value="false" |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | timefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | timefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | timefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized timefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized timefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized timefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datetimefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datetimefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | datetimefields with manually specified input formats can accept those formats |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datetimefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datetimefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/tests/test_input_formats.py | 0 | localized datetimefields with manually specified input formats can accept those formats. |
| HIGH | tests/forms_tests/widget_tests/test_dateinput.py | 0 | use 'format' to change the way a value is displayed. |
| HIGH | tests/forms_tests/widget_tests/test_timeinput.py | 0 | use 'format' to change the way a value is displayed. |
| HIGH | tests/forms_tests/widget_tests/test_datetimeinput.py | 0 | use 'format' to change the way a value is displayed. |
| HIGH | tests/forms_tests/widget_tests/test_select.py | 0 | if the value corresponds to a label (but not to an option value), none of the options are selected. |
| HIGH | tests/forms_tests/widget_tests/test_radioselect.py | 0 | if the value corresponds to a label (but not to an option value), none of the options are selected. |
| HIGH | tests/forms_tests/widget_tests/test_selectmultiple.py | 0 | if the value corresponds to a label (but not to an option value), none of the options are selected. |
| HIGH | tests/forms_tests/widget_tests/test_select.py | 0 | <select name="num"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</option> </se |
| HIGH | tests/forms_tests/widget_tests/test_select.py | 0 | <select name="num"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</option> </se |
| HIGH | tests/forms_tests/widget_tests/test_select.py | 0 | <select name="num"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</option> </se |
| HIGH | tests/forms_tests/widget_tests/test_select.py | 0 | <select name="num"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</option> </se |
| HIGH | tests/forms_tests/widget_tests/test_selectmultiple.py | 0 | <select multiple name="nums"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</op |
| HIGH | tests/forms_tests/widget_tests/test_selectmultiple.py | 0 | <select multiple name="nums"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</op |
| HIGH | tests/forms_tests/widget_tests/test_selectmultiple.py | 0 | <select multiple name="nums"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</op |
| HIGH | tests/view_tests/tests/test_csrf.py | 0 | the template is loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default spec |
| 72 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/model_forms/models.py | 167 | |
| LOW | tests/fixtures_regress/tests.py | 59 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/composite_pk/models/__init__.py | 1 | |
| LOW | tests/auth_tests/backend_alias.py | 2 | |
| LOW | tests/auth_tests/models/__init__.py | 1 | |
| LOW | tests/auth_tests/models/__init__.py | 2 | |
| LOW | tests/auth_tests/models/__init__.py | 2 | |
| LOW | tests/auth_tests/models/__init__.py | 2 | |
| LOW | tests/auth_tests/models/__init__.py | 2 | |
| LOW | tests/auth_tests/models/__init__.py | 8 | |
| LOW | tests/auth_tests/models/__init__.py | 9 | |
| LOW | tests/auth_tests/models/__init__.py | 10 | |
| LOW | tests/auth_tests/models/__init__.py | 11 | |
| LOW | tests/auth_tests/models/__init__.py | 12 | |
| LOW | tests/auth_tests/models/__init__.py | 13 | |
| LOW | tests/auth_tests/models/__init__.py | 13 | |
| LOW | tests/auth_tests/models/__init__.py | 14 | |
| LOW | tests/auth_tests/models/__init__.py | 15 | |
| LOW | tests/auth_tests/models/__init__.py | 16 | |
| LOW | tests/auth_tests/models/__init__.py | 16 | |
| LOW | tests/auth_tests/models/__init__.py | 17 | |
| LOW | tests/auth_tests/models/__init__.py | 18 | |
| LOW | tests/auth_tests/models/__init__.py | 19 | |
| LOW | tests/auth_tests/models/__init__.py | 19 | |
| LOW | tests/auth_tests/models/__init__.py | 19 | |
| LOW | tests/auth_tests/models/__init__.py | 20 | |
| LOW | tests/foreign_object/models/__init__.py | 1 | |
| LOW | tests/foreign_object/models/__init__.py | 1 | |
| LOW | tests/foreign_object/models/__init__.py | 1 | |
| LOW | tests/foreign_object/models/__init__.py | 1 | |
| LOW | tests/foreign_object/models/__init__.py | 1 | |
| LOW | tests/foreign_object/models/__init__.py | 2 | |
| LOW | tests/foreign_object/models/__init__.py | 2 | |
| LOW | tests/foreign_object/models/__init__.py | 2 | |
| LOW | tests/foreign_object/models/__init__.py | 2 | |
| LOW | tests/foreign_object/models/__init__.py | 3 | |
| LOW | tests/foreign_object/models/__init__.py | 4 | |
| LOW | tests/foreign_object/models/__init__.py | 4 | |
| LOW | tests/foreign_object/models/__init__.py | 4 | |
| LOW | tests/foreign_object/models/__init__.py | 4 | |
| LOW | tests/foreign_object/models/__init__.py | 4 | |
| LOW | tests/template_tests/broken_tag.py | 1 | |
| LOW | tests/urlpatterns_reverse/views.py | 26 | |
| LOW | tests/forms_tests/field_tests/test_filefield.py | 11 | |
| LOW | tests/invalid_models_tests/test_ordinary_fields.py | 843 | |
| LOW | …_backends/apps/importerror/templatetags/broken_tags.py | 1 | |
| LOW | tests/admin_scripts/broken_app/models.py | 1 | |
| LOW | tests/admin_scripts/simple_app/models.py | 1 | |
| LOW | tests/admin_scripts/complex_app/models/__init__.py | 1 | |
| LOW | tests/admin_scripts/complex_app/models/__init__.py | 2 | |
| LOW | tests/serializers/test_deserialization.py | 16 | |
| LOW | tests/serializers/models/__init__.py | 1 | |
| LOW | tests/serializers/models/__init__.py | 2 | |
| LOW | tests/serializers/models/__init__.py | 3 | |
| LOW | tests/serializers/models/__init__.py | 4 | |
| 540 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/runtests.py | 108 | |
| LOW | tests/runtests.py | 444 | |
| LOW | tests/test_runner/tests.py | 772 | |
| LOW | tests/pagination/tests.py | 159 | |
| LOW | tests/pagination/tests.py | 594 | |
| LOW | tests/pagination/tests.py | 681 | |
| LOW | tests/auth_tests/test_forms.py | 1733 | |
| LOW | tests/auth_tests/test_hashers.py | 510 | |
| LOW | tests/auth_tests/test_hashers.py | 525 | |
| LOW | tests/auth_tests/test_hashers.py | 555 | |
| LOW | tests/auth_tests/test_auth_backends.py | 699 | |
| LOW | tests/transaction_hooks/tests.py | 191 | |
| LOW | tests/transaction_hooks/tests.py | 204 | |
| LOW | tests/transaction_hooks/tests.py | 217 | |
| LOW | tests/admin_filters/tests.py | 1385 | |
| LOW | tests/db_functions/datetime/test_extract_trunc.py | 1837 | |
| LOW | tests/cache/tests.py | 726 | |
| LOW | tests/update/tests.py | 235 | |
| LOW | tests/urlpatterns_reverse/tests.py | 687 | |
| LOW | tests/mail/test_deprecated.py | 227 | |
| LOW | tests/mail/test_deprecated.py | 449 | |
| LOW | tests/mail/test_backends.py | 196 | |
| LOW | tests/mail/tests.py | 980 | |
| LOW | tests/mail/tests.py | 1412 | |
| LOW | tests/mail/tests.py | 2457 | |
| LOW | tests/mail/tests.py | 2482 | |
| LOW | tests/forms_tests/widget_tests/test_selectdatewidget.py | 597 | |
| LOW | tests/backends/postgresql/tests.py | 37 | |
| LOW | tests/backends/postgresql/tests.py | 95 | |
| LOW | tests/backends/oracle/test_creation.py | 65 | |
| LOW | tests/backends/sqlite/test_introspection.py | 11 | |
| LOW | tests/backends/base/test_client.py | 20 | |
| LOW | tests/backends/base/test_base.py | 423 | |
| LOW | tests/file_storage/tests.py | 831 | |
| LOW | tests/async/test_async_queryset.py | 228 | |
| LOW | tests/select_for_update/tests.py | 395 | |
| LOW | tests/select_for_update/tests.py | 421 | |
| LOW | tests/queries/test_qs_combinators.py | 772 | |
| LOW | tests/queries/test_qs_combinators.py | 821 | |
| LOW | tests/queries/test_explain.py | 15 | |
| LOW | tests/queries/test_explain.py | 80 | |
| LOW | tests/introspection/tests.py | 362 | |
| LOW | tests/urlpatterns/tests.py | 260 | |
| LOW | tests/admin_views/test_skip_link_to_content.py | 131 | |
| LOW | tests/admin_views/tests.py | 338 | |
| LOW | tests/admin_views/tests.py | 369 | |
| LOW | tests/schema/tests.py | 146 | |
| LOW | tests/schema/tests.py | 269 | |
| LOW | tests/schema/tests.py | 5911 | |
| LOW | tests/admin_scripts/tests.py | 62 | |
| LOW | tests/transactions/tests.py | 116 | |
| LOW | tests/transactions/tests.py | 155 | |
| LOW | tests/transactions/tests.py | 196 | |
| LOW | tests/transactions/tests.py | 216 | |
| LOW | tests/transactions/tests.py | 280 | |
| LOW | tests/transactions/tests.py | 304 | |
| LOW | tests/transactions/tests.py | 453 | |
| LOW | tests/utils_tests/test_autoreload.py | 550 | |
| LOW | tests/utils_tests/test_autoreload.py | 570 | |
| LOW | tests/utils_tests/test_html.py | 40 | |
| 371 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/middleware/views.py | 88 | except Exception: |
| MEDIUM | tests/middleware/views.py | 85 | def csp_500(request): |
| MEDIUM | tests/asgi/tests.py | 317 | def post_view(request): |
| LOW | tests/asgi/tests.py | 324 | except Exception as e: |
| MEDIUM | tests/cache/tests.py | 689 | def _perform_cull_test(self, cull_cache_name, initial_count, final_count): |
| LOW | tests/cache/tests.py | 1666 | except Exception: |
| LOW | tests/file_uploads/tests.py | 759 | except Exception as err: |
| LOW | tests/file_uploads/tests.py | 779 | except Exception as err: |
| LOW | tests/forms_tests/field_tests/test_datefield.py | 217 | except Exception as e: |
| LOW | tests/backends/tests.py | 430 | except Exception as e: |
| LOW | tests/backends/tests.py | 504 | except Exception: |
| LOW | tests/backends/tests.py | 881 | except Exception as e: |
| LOW | tests/file_storage/tests.py | 749 | except Exception: |
| MEDIUM | tests/view_tests/views.py | 54 | def get(self, request): |
| MEDIUM | tests/view_tests/views.py | 212 | def async_sensitive_view_nested(request): |
| MEDIUM | tests/view_tests/views.py | 239 | def sensitive_args_function_caller(request): |
| MEDIUM | tests/view_tests/views.py | 261 | def sensitive_kwargs_function_caller(request): |
| MEDIUM | tests/view_tests/views.py | 379 | def async_method_nested(self, request): |
| LOW | tests/view_tests/views.py | 40 | except Exception: |
| LOW | tests/view_tests/views.py | 49 | except Exception: |
| LOW | tests/view_tests/views.py | 57 | except Exception: |
| LOW | tests/view_tests/views.py | 157 | except Exception: |
| LOW | tests/view_tests/views.py | 175 | except Exception: |
| LOW | tests/view_tests/views.py | 193 | except Exception: |
| LOW | tests/view_tests/views.py | 215 | except Exception: |
| LOW | tests/view_tests/views.py | 233 | except Exception: |
| LOW | tests/view_tests/views.py | 246 | except Exception: |
| LOW | tests/view_tests/views.py | 268 | except Exception: |
| LOW | tests/view_tests/views.py | 308 | except Exception: |
| LOW | tests/view_tests/views.py | 330 | except Exception: |
| LOW | tests/view_tests/views.py | 347 | except Exception: |
| LOW | tests/view_tests/views.py | 363 | except Exception: |
| LOW | tests/view_tests/views.py | 382 | except Exception: |
| LOW | tests/view_tests/views.py | 409 | except Exception: |
| LOW | tests/view_tests/views.py | 99 | except Exception: |
| MEDIUM | tests/view_tests/tests/test_debug.py | 623 | def test_sharing_traceback(self): |
| MEDIUM | tests/view_tests/tests/test_debug.py | 768 | def test_mid_stack_exception_without_traceback(self): |
| MEDIUM | tests/view_tests/tests/test_debug.py | 912 | def test_reporting_frames_without_source(self): |
| MEDIUM | tests/view_tests/tests/test_debug.py | 947 | def test_reporting_frames_source_not_match(self): |
| MEDIUM | tests/view_tests/tests/test_debug.py | 987 | def test_reporting_frames_for_cyclic_reference(self): |
| LOW | tests/view_tests/tests/test_debug.py | 699 | except Exception as exc: |
| LOW | tests/view_tests/tests/test_debug.py | 703 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 740 | except Exception as err: |
| LOW | tests/view_tests/tests/test_debug.py | 745 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 772 | except Exception as exc: |
| LOW | tests/view_tests/tests/test_debug.py | 776 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 812 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 997 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1077 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1089 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1108 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 327 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 855 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 918 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 953 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1126 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1142 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1158 | except Exception: |
| LOW | tests/view_tests/tests/test_debug.py | 1349 | except Exception: |
| MEDIUM | tests/basic/tests.py | 736 | def deleter(): |
| 168 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/generic_views/test_edit.py | 155 | {"name": "John Doe", "slug": "john-doe"}, |
| LOW | tests/generic_views/test_edit.py | 158 | pk = Author.objects.get(name="John Doe").pk |
| LOW | tests/generic_views/test_edit.py | 314 | {"name": "John Doe", "slug": "john-doe"}, |
| LOW | tests/generic_views/test_edit.py | 317 | pk = Author.objects.get(name="John Doe").pk |
| LOW | tests/expressions_case/tests.py | 1509 | name="Jane Doe", |
| LOW | tests/expressions_case/tests.py | 1533 | [("Jane Doe", "0%"), ("James Smith", "5%"), ("Jack Black", "10%")], |
| LOW | tests/expressions_case/tests.py | 1548 | [("Jane Doe", "5%"), ("James Smith", "0%"), ("Jack Black", "10%")], |
| LOW | tests/expressions_case/tests.py | 1564 | [("Jane Doe", "G"), ("James Smith", "R"), ("Jack Black", "P")], |
| LOW | tests/model_forms/tests.py | 274 | form = modelform_factory(Person, fields="__all__")({"name": "John Doe"}) |
| LOW | tests/model_forms/tests.py | 2463 | author = Author.objects.create(publication=publication, full_name="John Doe") |
| LOW | tests/model_forms/tests.py | 2464 | form = AuthorForm({"publication": "", "full_name": "John Doe"}, instance=author) |
| LOW | tests/model_forms/tests.py | 2482 | author = Author1.objects.create(publication=publication, full_name="John Doe") |
| LOW | tests/model_forms/tests.py | 2483 | form = AuthorForm({"publication": "", "full_name": "John Doe"}, instance=author) |
| LOW | tests/model_forms/tests.py | 2082 | "article": "lorem ipsum", |
| LOW | tests/model_forms/tests.py | 2113 | "article": "lorem ipsum", |
| LOW | tests/auth_tests/test_forms.py | 1236 | data = {"email": "foo@bar.com"} |
| LOW | tests/auth_tests/test_management.py | 1253 | "email": "test@test.com", |
| LOW | tests/auth_tests/test_views.py | 1755 | username="uuid", email="foo@bar.com", password="test" |
| LOW | tests/auth_tests/test_remote_user.py | 456 | self.email_header: "user@example.com", |
| LOW | tests/auth_tests/test_remote_user.py | 460 | self.assertEqual(response.context["user"].email, "user@example.com") |
| LOW | tests/auth_tests/test_remote_user.py | 464 | self.assertEqual(newuser.email, "user@example.com") |
| LOW | tests/auth_tests/test_remote_user.py | 482 | self.email_header.removeprefix("HTTP_"): "user@example.com", |
| LOW | tests/auth_tests/test_remote_user.py | 486 | self.assertEqual(response.context["user"].email, "user@example.com") |
| LOW | tests/auth_tests/test_remote_user.py | 490 | self.assertEqual(newuser.email, "user@example.com") |
| LOW | tests/auth_tests/test_models.py | 162 | email="test@test.com", |
| LOW | tests/auth_tests/test_models.py | 173 | email="test@test.com", |
| LOW | tests/auth_tests/test_models.py | 182 | email="test@test.com", |
| LOW | tests/auth_tests/test_models.py | 191 | email="test@test.com", |
| LOW | tests/auth_tests/test_models.py | 522 | user = User.objects.create(username="foo", email="foo@bar.com") |
| LOW | tests/auth_tests/test_models.py | 269 | user = User(email="foo@bar.com") |
| LOW | tests/auth_tests/test_models.py | 293 | self.assertEqual(user.email, "foo@bar.com") |
| LOW | tests/bulk_create/models.py | 127 | email_field = models.EmailField(null=True, default="user@example.com") |
| LOW | tests/generic_inline_admin/tests.py | 266 | "name": "John Doe", |
| LOW | tests/template_tests/syntax_tests/test_lorem.py | 12 | self.assertEqual(output, "lorem ipsum dolor") |
| LOW | tests/db_functions/datetime/test_now.py | 12 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/db_functions/datetime/test_now.py | 12 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/db_functions/comparison/test_coalesce.py | 9 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/db_functions/comparison/test_coalesce.py | 9 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/db_functions/text/test_concat.py | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/db_functions/text/test_concat.py | 13 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | tests/model_inheritance/tests.py | 86 | post = Post.objects.create(title="Lorem Ipsum") |
| LOW | tests/mail/test_sendtestemail.py | 7 | ADMINS=["admin@example.com", "admin_and_manager@example.com"], |
| LOW | tests/mail/test_sendtestemail.py | 83 | "admin@example.com", |
| LOW | tests/mail/test_sendtestemail.py | 107 | "admin@example.com", |
| LOW | tests/mail/tests.py | 2538 | @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"]) |
| LOW | tests/mail/tests.py | 2443 | @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"]) |
| LOW | tests/mail/tests.py | 2591 | @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"]) |
| LOW | tests/forms_tests/tests/test_forms.py | 1233 | {"name": "John Doe"}, initial={"birthday": datetime.date(1974, 8, 16)} |
| LOW | tests/forms_tests/tests/test_forms.py | 1235 | f2 = PersonFormFieldInitial({"name": "John Doe"}) |
| LOW | tests/forms_tests/tests/test_forms.py | 1240 | {"birthday": datetime.date(1974, 8, 16), "name": "John Doe"}, |
| LOW | tests/forms_tests/tests/test_forms.py | 1244 | data = {"name": "John Doe", "birthday": "1984-11-10"} |
| LOW | tests/forms_tests/tests/test_forms.py | 1251 | {"birthday": datetime.date(1974, 8, 16), "name": "John Doe"}, |
| LOW | tests/forms_tests/tests/test_forms.py | 2870 | name = CharField(initial=lambda: "John Doe", disabled=True) |
| LOW | tests/forms_tests/tests/test_forms.py | 2874 | self.assertEqual(form["name"].value(), "John Doe") |
| LOW | tests/forms_tests/tests/test_forms.py | 2879 | self.assertEqual(form["name"].value(), "John Doe") |
| LOW | tests/view_tests/tests/test_debug.py | 1497 | with self.settings(ADMINS=["admin@example.com"]): |
| LOW | tests/view_tests/tests/test_debug.py | 1534 | with self.settings(ADMINS=["admin@example.com"]): |
| LOW | tests/view_tests/tests/test_debug.py | 1578 | with self.settings(ADMINS=["admin@example.com"]): |
| LOW | tests/view_tests/media/long-line.txt | 1 | lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqu |
| LOW | tests/view_tests/media/long-line.txt | 1 | lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqu |
| 86 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_sqlite.py | 1 | # This is an example test settings file for use with the Django test suite. |
| LOW | tests/asgi/tests.py | 401 | scope = self.async_request_factory._base_scope(path="/") |
| LOW | tests/migrate_signals/models.py | 1 | # This module has to exist, otherwise pre/post_migrate aren't sent for the |
| LOW | tests/requests_tests/tests.py | 981 | # 3. main_stream.read(1) -- BoundaryIter.__init__ probe, file field |
| LOW | tests/admin_changelist/tests.py | 1281 | different users must not result in one user's edits creating a new |
| LOW | tests/nested_foreign_keys/tests.py | 21 | # Model B |
| LOW | …lates/project_template/additional_dir/requirements.txt | 1 | # some file for {{ project_name }} test project |
| LOW | …templates/project_template/additional_dir/localized.py | 1 | # Regression for #22699. |
| LOW | tests/i18n/test_compilation.py | 201 | os_walk_results = [ |
| LOW | tests/gis_tests/layermap/tests.py | 221 | # has the effect of ignoring the spatial reference check (because |
| LOW | tests/gis_tests/distapp/tests.py | 441 | """ |
| LOW | tests/gis_tests/distapp/tests.py | 501 | |
| LOW | tests/gis_tests/distapp/tests.py | 541 | self.assertAlmostEqual(distance, city.distance.m, tol) |
| LOW | docs/conf.py | 1 | # Django documentation build configuration file, created by |
| LOW | docs/conf.py | 21 | # RuntimeError: maximum recursion depth exceeded while pickling an object |
| LOW | docs/conf.py | 161 | # There are two options for replacing |today|: either, you set today to some |
| LOW | docs/conf.py | 201 | suppress_warnings = ["app.add_directive", "epub.duplicated_toc_entry"] |
| LOW | docs/conf.py | 221 | # A shorter title for the navigation bar. Default is the same as html_title. |
| LOW | docs/conf.py | 241 | |
| LOW | docs/conf.py | 261 | # If true, links to the reST sources are added to the pages. |
| LOW | docs/conf.py | 401 | # or en if the language is not set. |
| LOW | docs/conf.py | 421 | # The format is a list of tuples containing the path and title. |
| LOW | docs/ref/class-based-views/generic-display.txt | 21 | * :class:`django.views.generic.base.TemplateResponseMixin` |
| LOW | scripts/manage_translations.py | 1 | #!/usr/bin/env python |
| LOW | django/middleware/csrf.py | 441 | ) |
| LOW | django/forms/fields.py | 121 | # label -- A verbose name for this field, for use in displaying this |
| LOW | django/core/serializers/__init__.py | 201 | # Also add a dependency for any simple M2M relation with a model |
| LOW | django/template/defaulttags.py | 641 | <tr class="{{ rowcolors }}">{% include "subtemplate.html " %}</tr> |
| LOW | django/utils/encoding.py | 121 | # reserved = gen-delims / sub-delims |
| LOW | django/contrib/admin/static/admin/js/calendar.js | 121 | const todayDay = today.getDate(); |
| LOW | …ntrib/admin/static/admin/js/admin/DateTimeShortcuts.js | 161 | clock_link.setAttribute("aria-labelledby", clockIconId); |
| LOW | …ntrib/admin/static/admin/js/admin/DateTimeShortcuts.js | 361 | // role="dialog" aria-label="Choose a Date"> |
| LOW | django/contrib/sessions/backends/file.py | 141 | if not must_create: |
| LOW | django/contrib/humanize/templatetags/humanize.py | 41 | else: |
| LOW | django/contrib/humanize/templatetags/humanize.py | 221 | # Translators: delta will contain a string like '2 months' or |
| LOW | django/contrib/gis/measure.py | 1 | # Copyright (c) 2007, Robert Coup <robert.coup@onetrackmind.co.nz> |
| LOW | django/contrib/gis/db/backends/postgis/pgraster.py | 121 | |
| LOW | django/db/backends/oracle/base.py | 601 | # Handle params as a dict with unified query parameters by their |
| LOW | django/db/backends/base/features.py | 261 | # Does the database support SQL 2003 FILTER (WHERE ...) in aggregate |
| LOW | django/db/backends/base/features.py | 341 | supports_boolean_expr_in_select_clause = True |
| LOW | django/db/backends/base/schema.py | 1041 | # will now be used in lieu of an index. The following lines from the |
| LOW | django/db/backends/base/schema.py | 1221 | for sql, params in post_actions: |
| LOW | django/db/models/options.py | 341 | # Insert the given field in the order in which it was created, using |
| LOW | django/db/models/query.py | 2961 | # - reorder_for_init: When select_related descends to a child |
| LOW | django/db/models/deletion.py | 121 | self.origin = origin |
| LOW | django/db/models/base.py | 1261 | # Ensure that a model instance without a PK hasn't been assigned to |
| LOW | django/db/models/fields/files.py | 181 | # the FieldFile API so that users can easily do things like |
| LOW | django/db/models/fields/related.py | 241 | errors = [] |
| LOW | django/db/models/fields/__init__.py | 101 | # A guide to Field parameters: |
| LOW | django/db/models/fields/__init__.py | 901 | """ |
| LOW | django/db/models/sql/compiler.py | 101 | |
| LOW | django/db/models/sql/compiler.py | 121 | # GROUP BY: name, pk |
| LOW | django/db/models/sql/query.py | 721 | # alias prefix of the rhs and update current aliases accordingly, |
| LOW | django/db/models/sql/query.py | 2861 | # to rel_a would remove a valid match from the query. So, we need |
| LOW | django/db/models/sql/query.py | 2881 | # (rel_a__col=1|rel_b__col=2) & rel_a__col__gte=0 |
| LOW | django/views/templates/technical_500.html | 41 | div.context ol li pre { display:inline; } |
| LOW | django/conf/global_settings.py | 21 | # on a live site. |
| LOW | django/conf/global_settings.py | 181 | # Email address that error messages come from. |
| LOW | django/conf/global_settings.py | 241 | # Whether to append trailing slashes to URLs. |
| LOW | django/conf/global_settings.py | 261 | |
| 25 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/model_forms/tests.py | 1928 | # same fields as the Category model, we can just call the form's save() |
| LOW | tests/get_earliest_or_latest/tests.py | 188 | # "get_latest_by" set -- just pass in the field name manually. |
| LOW | tests/view_tests/views.py | 148 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 166 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 184 | # Do not just use plain strings for the variables' values in the code so |
| LOW | tests/view_tests/views.py | 202 | # Do not just use plain strings for the variables' values in the code so |
| LOW | tests/view_tests/views.py | 224 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 254 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 276 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 298 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 338 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 354 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/views.py | 370 | # Do not just use plain strings for the variables' values in the code |
| LOW | tests/view_tests/tests/test_debug.py | 813 | # Custom exception handler, just pass it into ExceptionReporter |
| LOW | tests/model_meta/tests.py | 281 | # should just return an EMPTY_RELATION_TREE. |
| MEDIUM | tests/many_to_one/tests.py | 406 | # Counting in the opposite direction works in conjunction with |
| LOW | tests/queryset_pickle/tests.py | 61 | # can't just use assertEqual(original, unpickled) |
| MEDIUM | tests/postgres_tests/test_indexes.py | 562 | """SearchVector generates IMMUTABLE SQL in order to be indexable.""" |
| MEDIUM | tests/gis_tests/geo3d/tests.py | 51 | # http://seamless.usgs.gov/products/9arc.php |
| MEDIUM | tests/gis_tests/geo3d/tests.py | 51 | # http://seamless.usgs.gov/products/9arc.php |
| LOW | django/middleware/cache.py | 88 | # We don't need to update the cache, just return. |
| LOW | django/forms/models.py | 1560 | # the property self.choices. In this case, just return self._choices. |
| MEDIUM | django/template/base.py | 569 | # When deprecation ends elevate the warning to an error. |
| LOW | django/contrib/admin/options.py | 275 | # For any other type of field, just call its formfield() method. |
| LOW | django/contrib/admin/options.py | 1222 | # If the action is a callable, just use it. |
| LOW | django/http/multipartparser.py | 229 | # This is a post field, we can just set it in the post |
| LOW | django/http/multipartparser.py | 648 | # There's nothing left, we should just return and mark as done. |
| LOW | django/db/backends/sqlite3/operations.py | 168 | # For consistency with SQLiteCursorWrapper.execute(), just return sql |
| LOW | django/db/backends/base/creation.py | 232 | # below, just return and skip it all. |
| MEDIUM | django/db/backends/base/base.py | 99 | # Each entry is an (sids, func, robust) tuple, where sids is a set of |
| MEDIUM | django/db/backends/base/base.py | 100 | # the active savepoint IDs when this function was registered and robust |
| LOW | django/db/models/fields/related_descriptors.py | 360 | # when accessing the attribute we just set. |
| LOW | django/db/models/fields/related_descriptors.py | 642 | # query when accessing the attribute we just set. |
| LOW | django/db/models/fields/related.py | 944 | # While 'limit_choices_to' might be a callable, simply pass |
| MEDIUM | django/db/models/sql/query.py | 464 | # resolving purpose to facilitate their subsequent removal. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/model_forms/tests.py | 2612 | # Check if the max_length attribute has been inherited from the model. |
| LOW | tests/auth_tests/test_remote_user.py | 218 | # Set last_login to something so we can determine if it changes. |
| LOW | tests/auth_tests/test_remote_user.py | 237 | # Set last_login to something so we can determine if it changes. |
| LOW | tests/cache/tests.py | 2236 | # Set headers to an empty list. |
| LOW | tests/cache/tests.py | 2214 | # Set headers to an empty list. |
| LOW | tests/cache/tests.py | 3025 | # Set headers to an empty list. |
| LOW | tests/cache/tests.py | 3047 | # Set headers to an empty list. |
| LOW | tests/requests_tests/tests.py | 1341 | # Check if X_FORWARDED_HOST isn't provided. |
| LOW | tests/requests_tests/tests.py | 1350 | # Check if HTTP_HOST isn't provided. |
| LOW | tests/requests_tests/tests.py | 1358 | # Check if HTTP_HOST isn't provided, and we're on a nonstandard port |
| LOW | tests/requests_tests/tests.py | 1411 | # Check if X_FORWARDED_HOST isn't provided. |
| LOW | tests/requests_tests/tests.py | 1420 | # Check if HTTP_HOST isn't provided. |
| LOW | tests/requests_tests/tests.py | 1428 | # Check if HTTP_HOST isn't provided, and we're on a nonstandard port |
| LOW | tests/requests_tests/tests.py | 1330 | # Check if X_FORWARDED_HOST is provided. |
| LOW | tests/requests_tests/tests.py | 1400 | # Check if X_FORWARDED_HOST is provided. |
| LOW | tests/admin_views/tests.py | 991 | # Check if the correct column was selected. 2 is the index of the |
| LOW | tests/model_fields/test_floatfield.py | 15 | # Set value to valid and save |
| LOW | tests/model_fields/test_floatfield.py | 19 | # Set field to object on saved instance |
| LOW | tests/gis_tests/gdal_tests/test_raster.py | 450 | # Check if options used on creation are stored in metadata. |
| LOW | tests/indexes/models.py | 15 | # Set unique to enable model cache. |
| LOW | scripts/verify_release.sh | 8 | # Set GPG_KEY to a key fingerprint to import it before verifying, e.g.: |
| LOW | django/middleware/common.py | 51 | # Check if we also need to append a slash so we can do it all |
| LOW | django/core/validators.py | 168 | # Check if the scheme is valid. |
| LOW | django/core/serializers/xml_serializer.py | 344 | # Check if there is a child node named 'None', returning None if so. |
| LOW | django/template/base.py | 1048 | # Set this to True for nodes that must be first in the template (although |
| LOW | django/utils/log.py | 307 | # Check if the response has already been logged. Multiple requests to log |
| LOW | django/contrib/auth/hashers.py | 464 | # Set salt_len to the salt_len of the current parameters because salt |
| LOW | django/contrib/admin/options.py | 1607 | # Check if this is an optgroup (label is a sequence |
| LOW | django/contrib/gis/gdal/raster/source.py | 142 | # Check if width and height where specified |
| LOW | django/contrib/gis/gdal/raster/source.py | 148 | # Check if srid was specified |
| LOW | django/contrib/gis/db/backends/spatialite/base.py | 72 | # Check if spatial metadata have been initialized in the database |
| LOW | django/contrib/gis/db/models/fields.py | 198 | # Check if input is a candidate for conversion to raster or |
| LOW | django/contrib/gis/db/models/lookups.py | 29 | # Check if a band index was passed in the query argument. |
| LOW | django/contrib/gis/db/models/lookups.py | 315 | # Check if the second parameter is a band index. |
| LOW | django/db/models/base.py | 2417 | # Check if auto-generated name for the field is too long |
| LOW | django/db/models/base.py | 2440 | # Check if auto-generated name for the M2M field is too long |
| LOW | django/db/models/sql/query.py | 1851 | # Check if we need any joins for concrete inheritance cases (the |
| LOW | django/db/models/sql/where.py | 162 | # Check if this node matches nothing or everything. |
| LOW | django/apps/config.py | 124 | # Check if there's exactly one AppConfig candidate, |
| LOW | django/apps/config.py | 138 | # Check if there's exactly one AppConfig subclass, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | django/contrib/gis/db/models/lookups.py | 93 | # ------------------ |
| MEDIUM | django/contrib/gis/db/models/lookups.py | 95 | # ------------------ |
| MEDIUM | django/contrib/gis/db/models/lookups.py | 222 | # ------------------ |
| MEDIUM | django/contrib/gis/db/models/lookups.py | 224 | # ------------------ |
| MEDIUM | django/db/backends/base/schema.py | 1046 | # ------------------------------------- |
| MEDIUM | django/db/backends/base/schema.py | 1235 | # ------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | django/utils/cache.py | 181 | # Step 1: Test the If-Match precondition. |
| LOW | django/utils/cache.py | 185 | # Step 2: Test the If-Unmodified-Since precondition. |
| LOW | django/utils/cache.py | 193 | # Step 3: Test the If-None-Match precondition. |
| LOW | django/utils/cache.py | 200 | # Step 4: Test the If-Modified-Since precondition. |
| LOW | django/utils/cache.py | 209 | # Step 5: Test the If-Range precondition (not supported). |
| LOW | django/utils/cache.py | 210 | # Step 6: Return original response since there isn't a conditional |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/template_tests/test_callables.py | 69 | def my_method(self): |
| LOW | tests/template_tests/test_callables.py | 92 | def my_method(self): |
| LOW | tests/forms_tests/tests/test_forms.py | 5379 | def my_function(method, post_data): |
| LOW | tests/basic/tests.py | 440 | def do_something(self): |
| LOW | tests/admin_checks/tests.py | 750 | def my_function(obj): |
| LOW | tests/sphinx/testdata/package/module.py | 16 | def my_method(self): |
| LOW | tests/sphinx/testdata/package/module.py | 24 | def my_function(self): |
| LOW | django/views/decorators/debug.py | 21 | def my_function(user): |
| LOW | django/views/decorators/debug.py | 30 | def my_function() |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_runner/test_parallel.py | 86 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/forms_tests/tests/test_forms.py | 1833 | # self.fields dictionary in __init__(). Don't forget to call |