removing some invalid chars

This commit is contained in:
Nikhil Jain 2021-03-11 20:07:31 +05:30
parent 53da8e0775
commit 2aa30226f4

View File

@ -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