mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
flake8
This commit is contained in:
parent
ec456c4e8b
commit
338a504314
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user