From 056faa18147b902c0dc39f8bea535d943da2df80 Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 17 Nov 2014 15:15:44 -0500 Subject: [PATCH] Fix Pylint: W0201: attribute-defined-outside-init LoginEnrollmentTestCase.setup_user: Attribute 'user' defined outside __init__ --- lms/djangoapps/courseware/tests/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/courseware/tests/helpers.py b/lms/djangoapps/courseware/tests/helpers.py index a6e7cd9568..1aee349cd5 100644 --- a/lms/djangoapps/courseware/tests/helpers.py +++ b/lms/djangoapps/courseware/tests/helpers.py @@ -27,6 +27,8 @@ class LoginEnrollmentTestCase(TestCase): Provides support for user creation, activation, login, and course enrollment. """ + user = None + def setup_user(self): """ Create a user account, activate, and log in.