mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
flake8
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user