mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
removing some invalid chars
This commit is contained in:
parent
53da8e0775
commit
2aa30226f4
@ -62,18 +62,18 @@ def test_update_password_on_create(run_module, admin_user, mock_auth_stuff):
|
||||
@pytest.mark.django_db
|
||||
def test_update_user(run_module, admin_user, mock_auth_stuff):
|
||||
result = run_module('tower_user', dict(
|
||||
username='Bob',
|
||||
password='pass4word',
|
||||
is_system_auditor=True
|
||||
), admin_user)
|
||||
assert not result.get('failed', False), result.get('msg', result)
|
||||
assert result.get('changed'), result
|
||||
username='Bob',
|
||||
password='pass4word',
|
||||
is_system_auditor=True
|
||||
), admin_user)
|
||||
assert not result.get('failed', False), result.get('msg', result)
|
||||
assert result.get('changed'), result
|
||||
|
||||
update_result = run_module('tower_user', dict(
|
||||
username='Bob',
|
||||
is_system_auditor=False
|
||||
), admin_user)
|
||||
username='Bob',
|
||||
is_system_auditor=False
|
||||
), admin_user)
|
||||
|
||||
assert update_result.get('changed')
|
||||
user = User.objects.get(id=result['id'])
|
||||
assert not user.is_system_auditor
|
||||
assert update_result.get('changed')
|
||||
user = User.objects.get(id=result['id'])
|
||||
assert not user.is_system_auditor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user