Exemple #1
0
def share_user():
    user = ShareUser(username='******', )
    user.save()

    # add source
    factories.SourceFactory(user=user),
    return user
Exemple #2
0
def source_add_user():
    content_type = ContentType.objects.get_for_model(Source)
    permission = Permission.objects.get(content_type=content_type, codename='add_source')

    user = ShareUser(username='******', is_trusted=True)
    user.save()
    user.user_permissions.add(permission)
    return user
def source_add_user():
    content_type = ContentType.objects.get_for_model(Source)
    permission = Permission.objects.get(content_type=content_type, codename='add_source')

    user = ShareUser(username='******', is_trusted=True)
    user.save()
    user.user_permissions.add(permission)
    return user
def share_user():
    user = ShareUser(
        username='******',
    )
    user.save()

    # add source
    factories.SourceFactory(user=user),
    return user
Exemple #5
0
def share_user():
    user = ShareUser(username='******')
    user.save()
    return user
Exemple #6
0
def trusted_user():
    user = ShareUser(username='******', is_trusted=True)
    user.save()
    return user
Exemple #7
0
def share_source():
    source = ShareUser(username='******')
    source.save()
    return source
Exemple #8
0
def share_source():
    source = ShareUser(username='******')
    source.save()
    return source
Exemple #9
0
def trusted_user():
    user = ShareUser(username='******', is_trusted=True)
    user.save()
    return user
Exemple #10
0
def share_user():
    user = ShareUser(username='******')
    user.save()
    return user