diff --git a/.pylintrc b/.pylintrc index 2fe14cc..79dc22f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/README.rst b/README.rst index a10945a..bfd4aff 100644 --- a/README.rst +++ b/README.rst @@ -170,7 +170,7 @@ Quickstart Для проверки pylint используем: ------------------------------- -pylint ../access_controller_new (папка проекта) +pylint --django-settings-module=access_controller_new.access_controller.settings ../access_controller_new Для приведения файлов к стандарту PEP8 используем: -------------------------------------------------- diff --git a/main/tests.py b/main/tests.py index d7001af..61ff9e3 100644 --- a/main/tests.py +++ b/main/tests.py @@ -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()