Skip to content

Commit e1fc3c7

Browse files
Use the latest instalement of functional tests classes
1 parent bb2f8c6 commit e1fc3c7

File tree

76 files changed

+45
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+45
-80
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ repos:
1515
hooks:
1616
- id: ruff-check
1717
args: ["--fix"]
18-
exclude: "tests/input/"
18+
exclude: "tests/functional/"
1919
- id: ruff-format
20-
exclude: ^pylint_django/tests/input.*$
20+
exclude: ^pylint_django/tests/functional.*$
2121
args: [--line-length=120]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
2323
rev: "v2.11.1"
@@ -40,4 +40,4 @@ repos:
4040
language: system
4141
types: [python]
4242
args: ["-rn", "-sn", "--fail-on=I"]
43-
exclude: "tests/input/"
43+
exclude: "tests/functional/"

pylint_django/tests/input/func_noerror_duplicate_except_doesnotexist.py renamed to pylint_django/tests/functional/duplicate/duplicate_except_doesnotexist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
except blocks catching DoesNotExist exceptions:
44
https://github.com/pylint-dev/pylint-django/issues/81
55
"""
6+
67
# pylint: disable=missing-docstring
78
from django.db import models
89

pylint_django/tests/input/external_factory_boy_noerror.py renamed to pylint_django/tests/functional/external/external_factory_boy_noerror.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test to validate that pylint_django doesn't produce
33
Instance of 'SubFactory' has no 'pk' member (no-member) warnings
44
"""
5+
56
# pylint: disable=attribute-defined-outside-init, missing-docstring, too-few-public-methods
67
import factory
78
from django import test
@@ -36,7 +37,7 @@ class Meta:
3637
class BookTestCase(test.LiveServerTestCase):
3738
serialized_rollback = True
3839

39-
def _fixture_setup(self): # pylint: disable=arguments-differ
40+
def _fixture_setup(self): # pylint: disable=arguments-differ
4041
super()._fixture_setup()
4142
self.book = BookFactory()
4243
_author = AuthorFactory()

0 commit comments

Comments
 (0)