diff --git a/awx_collection/test/awx/test_user.py b/awx_collection/test/awx/test_user.py index a530e63d90..6a0dfa123d 100644 --- a/awx_collection/test/awx/test_user.py +++ b/awx_collection/test/awx/test_user.py @@ -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