Exemplo n.º 1
0
def test_user_permissions_for_document_archive():
    user, organization, project, client = setup()
    user_permissions_test_manage(view='projects:transfer_ownership',
                                 client=client,
                                 user=user,
                                 organization=organization,
                                 project=project,
                                 args=[project.pk])
Exemplo n.º 2
0
def test_user_permissions_for_project_categories():
    user, organization, project, client = setup()
    user_permissions_test_manage(view='projects:categories',
                                 client=client,
                                 user=user,
                                 organization=organization,
                                 project=project,
                                 args=[project.pk])
Exemplo n.º 3
0
def test_user_permissions_for_document_details():
    user, organization, project, client = setup()
    user_permissions_test_manage(view='projects:details',
                                 client=client,
                                 user=user,
                                 organization=organization,
                                 project=project,
                                 args=[project.pk])
Exemplo n.º 4
0
def test_user_permissions_for_editing_project_category():
    user, organization, project, client = setup()
    category = Category.objects.create(name='Test Category', project=project)
    user_permissions_test_manage(view='projects:edit_category',
                                 client=client,
                                 user=user,
                                 organization=organization,
                                 project=project,
                                 args=[project.pk, category.pk])
Exemplo n.º 5
0
def test_user_permissions_for_document_archive():
    user, organization, project, client = setup()
    user_permissions_test_manage(
        view='projects:transfer_ownership',
        client=client,
        user=user,
        organization=organization,
        project=project,
        args=[project.pk]
    )
Exemplo n.º 6
0
def test_user_permissions_for_document_details():
    user, organization, project, client = setup()
    user_permissions_test_manage(
        view='projects:details',
        client=client,
        user=user,
        organization=organization,
        project=project,
        args=[project.pk]
    )
Exemplo n.º 7
0
def test_user_permissions_for_project_manage_access():
    user, organization, project, client = setup()
    user_permissions_test_manage(
        view='projects:manage_access',
        client=client,
        user=user,
        organization=organization,
        project=project,
        args=[project.pk]
    )
Exemplo n.º 8
0
def test_user_permissions_for_creating_project_category():
    user, organization, project, client = setup()
    user_permissions_test_manage(
        view='projects:new_category',
        client=client,
        user=user,
        organization=organization,
        project=project,
        args=[project.pk]
    )
Exemplo n.º 9
0
def test_user_permissions_for_editing_project_category():
    user, organization, project, client = setup()
    category = Category.objects.create(name='Test Category', project=project)
    user_permissions_test_manage(
        view='projects:edit_category',
        client=client,
        user=user,
        organization=organization,
        project=project,
        args=[project.pk, category.pk]
    )