Skip to content

Commit 5945fa2

Browse files
author
carlio
committed
Adding some dependencies which are necessary for tests to past
1 parent dd4c5f4 commit 5945fa2

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ matrix:
2727

2828
install:
2929
- pip install tox-travis
30+
- pip install -e .[for_tests]
3031
script:
3132
- |
3233
if [ -z "$SANITY_CHECK" ]; then

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def is_wsgi_application(node):
749749
def pylint_newstyle_classdef_compat(linter, warning_name, augment):
750750
if not hasattr(NewStyleConflictChecker, 'visit_classdef'):
751751
return
752-
suppress_message(linter, NewStyleConflictChecker.visit_classdef, 'old-style-class', is_model_meta_subclass)
752+
suppress_message(linter, NewStyleConflictChecker.visit_classdef, warning_name, augment)
753753

754754

755755
# augment things

pylint_django/checkers/json_response.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
import astroid
1010

11-
from pylint import interfaces
12-
from pylint import checkers
11+
from pylint import interfaces, checkers
1312
from pylint.checkers import utils
1413
from pylint_django.__pkginfo__ import BASE_ID
1514

pylint_django/compat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# flake8: noqa
2+
# pylint: skip-file
3+
# no sane linter can figure out the hackiness in this compatability layer...
4+
15
try:
26
from astroid.nodes import ClassDef, FunctionDef, ImportFrom, AssignName, Attribute
37
except ImportError:

pylint_django/tests/input/func_noerror_test_wsgi_request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class SomeModel(models.Model):
1111
"""Just a model."""
12-
pass
1312

1413

1514
class SomeTestCase(TestCase):

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
],
2323
extras_require={
2424
'with_django': ['Django'],
25+
'for_tests': ['django_tables2', 'factory-boy'],
2526
},
2627
license='GPLv2',
2728
classifiers=[

0 commit comments

Comments
 (0)