Esempio n. 1
0
def test_user_delete(session):
    """Assert the User record is deleted."""
    user = User(username='******', roles='{edit, uma_authorization, staff}')
    user.save()
    user.delete()

    assert user.id is not None
Esempio n. 2
0
def test_user_delete(session):  # pylint: disable=unused-argument
    """Assert the User record is deleted."""
    user = User(username='******',
                keycloak_guid='1b20db59-19a0-4727-affe-c6f64309fd04')
    user.save()
    user.delete()

    assert user.id is not None