Beispiel #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])
Beispiel #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])
Beispiel #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])
Beispiel #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])
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]
    )
Beispiel #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]
    )
Beispiel #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]
    )
Beispiel #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]
    )
Beispiel #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]
    )