Resolve C0415 and E5110 problems
This commit is contained in:
parent
354e3f7373
commit
0fd3c0fa1b
@ -15,7 +15,7 @@ extension-pkg-whitelist=
|
||||
fail-under=10.0
|
||||
|
||||
# Files or directories to be skipped. They should be base names, not paths.
|
||||
ignore=CVS
|
||||
ignore=CVS, manage.py
|
||||
|
||||
# Files or directories matching the regex patterns are skipped. The regex
|
||||
# matches against base names, not paths.
|
||||
@ -144,7 +144,7 @@ disable=print-statement,
|
||||
deprecated-sys-function,
|
||||
exception-escape,
|
||||
comprehension-escape,
|
||||
C0415
|
||||
|
||||
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
|
@ -170,7 +170,7 @@ Quickstart
|
||||
Для проверки pylint используем:
|
||||
-------------------------------
|
||||
|
||||
pylint ../access_controller_new (папка проекта)
|
||||
pylint --django-settings-module=access_controller_new.access_controller.settings ../access_controller_new
|
||||
|
||||
Для приведения файлов к стандарту PEP8 используем:
|
||||
--------------------------------------------------
|
||||
|
@ -189,9 +189,15 @@ class MakeEngineerTestCase(TestCase):
|
||||
|
||||
|
||||
class PasswordResetTestCase(TestCase):
|
||||
"""
|
||||
Класс тестов сброса пароля.
|
||||
"""
|
||||
fixtures = ['fixtures/test_make_engineer.json']
|
||||
|
||||
def setUp(self):
|
||||
"""
|
||||
Предустановленные значения для проведения тестов
|
||||
"""
|
||||
self.user = '123@test.ru'
|
||||
self.email_backend = 'django.core.mail.backends.locmem.EmailBackend'
|
||||
self.client = Client()
|
||||
|
Loading…
x
Reference in New Issue
Block a user