Skip to content

Commit 915a1ab

Browse files
michael-katodorov
authored andcommitted
Update tests for pylint 2.7 compat
1 parent 7b5d802 commit 915a1ab

10 files changed

+19
-19
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
imported-auth-user:5::User model imported from django.contrib.auth.models
2-
imported-auth-user:6::User model imported from django.contrib.auth.models
3-
hard-coded-auth-user:10:PullRequest:Hard-coded 'auth.User'
1+
imported-auth-user:5:0::User model imported from django.contrib.auth.models
2+
imported-auth-user:6:0::User model imported from django.contrib.auth.models
3+
hard-coded-auth-user:10:31:PullRequest:Hard-coded 'auth.User'
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
http-response-with-json-dumps:9:say_yes:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
2-
http-response-with-json-dumps:14:say_yes2:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
3-
redundant-content-type-for-json-response:23:redundant_content_type:Redundant content_type parameter for JsonResponse()
4-
http-response-with-content-type-json:28:content_type_json:Instead of HttpResponse(content_type='application/json') use JsonResponse()
1+
http-response-with-json-dumps:9:11:say_yes:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
2+
http-response-with-json-dumps:14:11:say_yes2:Instead of HttpResponse(json.dumps(data)) use JsonResponse(data)
3+
redundant-content-type-for-json-response:23:11:redundant_content_type:Redundant content_type parameter for JsonResponse()
4+
http-response-with-content-type-json:28:11:content_type_json:Instead of HttpResponse(content_type='application/json') use JsonResponse()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
model-has-unicode:9:SomeModel:Found __unicode__ method on model (SomeModel). Python3 uses __str__.
1+
model-has-unicode:9:0:SomeModel:Found __unicode__ method on model (SomeModel). Python3 uses __str__.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
model-no-explicit-unicode:18:SomeModel:Model does not explicitly define __unicode__ (SomeModel)
1+
model-no-explicit-unicode:18:0:SomeModel:Model does not explicitly define __unicode__ (SomeModel)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
modelform-uses-exclude:10:PersonForm.Meta:Use explicit fields instead of exclude in ModelForm
1+
modelform-uses-exclude:10:8:PersonForm.Meta:Use explicit fields instead of exclude in ModelForm

pylint_django/tests/input/func_noerror_form_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Checks that Pylint does not complain about various
33
methods on Django form forms.
44
"""
5-
# pylint: disable=missing-docstring,R0904
5+
# pylint: disable=missing-docstring
66
from __future__ import print_function
77
from datetime import datetime, date
88
from django import forms

pylint_django/tests/input/func_noerror_uuid_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Checks that Pylint does not complain about UUID fields.
33
"""
4-
# pylint: disable=C0111,W5101
4+
# pylint: disable=missing-class-docstring,missing-function-docstring
55
from __future__ import print_function
66
from django.db import models
77

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
unused-argument:18:user_detail:Unused argument 'user_id':HIGH
2-
unused-argument:24:UserView.get:Unused argument 'user_id':INFERENCE
1+
unused-argument:18:25:user_detail:Unused argument 'user_id':HIGH
2+
unused-argument:24:27:UserView.get:Unused argument 'user_id':INFERENCE
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
new-db-field-with-default:28:Migration:pylint_django.tests.input.migrations.0002_new_column AddField with default value
1+
new-db-field-with-default:28:8:Migration:pylint_django.tests.input.migrations.0002_new_column AddField with default value
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
missing-backwards-migration-callable:12:Migration:Always include backwards migration callable
2-
missing-backwards-migration-callable:13:Migration:Always include backwards migration callable
3-
missing-backwards-migration-callable:15:Migration:Always include backwards migration callable
4-
missing-backwards-migration-callable:17:Migration:Always include backwards migration callable
1+
missing-backwards-migration-callable:12:8:Migration:Always include backwards migration callable
2+
missing-backwards-migration-callable:13:8:Migration:Always include backwards migration callable
3+
missing-backwards-migration-callable:15:8:Migration:Always include backwards migration callable
4+
missing-backwards-migration-callable:17:8:Migration:Always include backwards migration callable

0 commit comments

Comments
 (0)