From 338a504314ef729b703661eb3e95c588862ee534 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Fri, 22 May 2015 18:08:33 -0400 Subject: [PATCH] flake8 --- awx/api/serializers.py | 3 --- awx/main/tests/users.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index f1e269a634..65a70e23c9 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -659,9 +659,6 @@ class UserSerializer(BaseSerializer): def validate_is_superuser(self, attrs, source): return self._validate_ldap_managed_field(attrs, source) - def validate_password(self, attrs, source): - return attrs - class OrganizationSerializer(BaseSerializer): diff --git a/awx/main/tests/users.py b/awx/main/tests/users.py index e2bfe4f308..3de0658beb 100644 --- a/awx/main/tests/users.py +++ b/awx/main/tests/users.py @@ -123,7 +123,7 @@ class UsersTest(BaseTest): def test_user_creation_fails_without_password(self): url = reverse('api:user_list') new_user = dict(username='blippy') - response = self.post(url, expect=400, data=new_user, auth=self.get_super_credentials()) + self.post(url, expect=400, data=new_user, auth=self.get_super_credentials()) def test_only_super_user_or_org_admin_can_add_users(self): url = reverse('api:user_list')