swimlane/swimlane-python

View on GitHub
functional_tests/driver_tests/test_user_group_fields.py

Summary

Maintainability
F
2 mos
Test Coverage

File test_user_group_fields.py has 838 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import pytest
from swimlane import exceptions


@pytest.fixture(autouse=True, scope='module')
Severity: Major
Found in functional_tests/driver_tests/test_user_group_fields.py - About 2 days to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    class TestLastUpdatedByField:
        def test_last_updated_by_field_value(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 2 days to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 140..165

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 309.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    class TestCreatedByField:
        def test_created_by_field_value(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 2 days to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 168..193

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 309.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_users_field_on_save_bad_type_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 68..77
    functional_tests/driver_tests/test_user_group_fields.py on lines 107..116
    functional_tests/driver_tests/test_user_group_fields.py on lines 289..298
    functional_tests/driver_tests/test_user_group_fields.py on lines 430..439

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 141.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_groups_field_on_save_bad_type_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 68..77
    functional_tests/driver_tests/test_user_group_fields.py on lines 107..116
    functional_tests/driver_tests/test_user_group_fields.py on lines 350..359
    functional_tests/driver_tests/test_user_group_fields.py on lines 430..439

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 141.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_groups_only_field_on_save_bad_type_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 68..77
    functional_tests/driver_tests/test_user_group_fields.py on lines 289..298
    functional_tests/driver_tests/test_user_group_fields.py on lines 350..359
    functional_tests/driver_tests/test_user_group_fields.py on lines 430..439

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 141.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_user_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 68..77
    functional_tests/driver_tests/test_user_group_fields.py on lines 107..116
    functional_tests/driver_tests/test_user_group_fields.py on lines 289..298
    functional_tests/driver_tests/test_user_group_fields.py on lines 350..359

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 141.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_user_group_field_on_save_bad_type_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 107..116
    functional_tests/driver_tests/test_user_group_fields.py on lines 289..298
    functional_tests/driver_tests/test_user_group_fields.py on lines 350..359
    functional_tests/driver_tests/test_user_group_fields.py on lines 430..439

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 141.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_groups_field_bad_type_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 58..66
    functional_tests/driver_tests/test_user_group_fields.py on lines 97..105
    functional_tests/driver_tests/test_user_group_fields.py on lines 340..348
    functional_tests/driver_tests/test_user_group_fields.py on lines 420..428

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 132.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_user_group_field_bad_type_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 97..105
    functional_tests/driver_tests/test_user_group_fields.py on lines 279..287
    functional_tests/driver_tests/test_user_group_fields.py on lines 340..348
    functional_tests/driver_tests/test_user_group_fields.py on lines 420..428

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 132.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 58..66
    functional_tests/driver_tests/test_user_group_fields.py on lines 97..105
    functional_tests/driver_tests/test_user_group_fields.py on lines 279..287
    functional_tests/driver_tests/test_user_group_fields.py on lines 340..348

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 132.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_users_field_bad_type_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 58..66
    functional_tests/driver_tests/test_user_group_fields.py on lines 97..105
    functional_tests/driver_tests/test_user_group_fields.py on lines 279..287
    functional_tests/driver_tests/test_user_group_fields.py on lines 420..428

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 132.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_groups_only_field_bad_type_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 58..66
    functional_tests/driver_tests/test_user_group_fields.py on lines 279..287
    functional_tests/driver_tests/test_user_group_fields.py on lines 340..348
    functional_tests/driver_tests/test_user_group_fields.py on lines 420..428

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 132.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_user_and_group_invalid_group_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            swimGroup = pytest.swimlane_instance.groups.get(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 704..713

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 123.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_user_and_group_invalid_user_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 1 day to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 715..724

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 123.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_user_group_member_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 791..800
    functional_tests/driver_tests/test_user_group_fields.py on lines 802..811
    functional_tests/driver_tests/test_user_group_fields.py on lines 813..822

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_group_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 802..811
    functional_tests/driver_tests/test_user_group_fields.py on lines 813..822
    functional_tests/driver_tests/test_user_group_fields.py on lines 824..833

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_group_subgroup_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 791..800
    functional_tests/driver_tests/test_user_group_fields.py on lines 813..822
    functional_tests/driver_tests/test_user_group_fields.py on lines 824..833

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_user_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 791..800
    functional_tests/driver_tests/test_user_group_fields.py on lines 802..811
    functional_tests/driver_tests/test_user_group_fields.py on lines 824..833

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_selected_users_field_wrong_user_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_users_members_of_group_field_not_member_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userFour")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_other_group_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_user_group_member_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_group_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_selected_groups_field_wrong_group_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_parent_group_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupCombo")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_group_subgroup_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupThree")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_users_members_of_group_field_parent_group_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 929..938
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_user_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 7 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 268..277
    functional_tests/driver_tests/test_user_group_fields.py on lines 329..338
    functional_tests/driver_tests/test_user_group_fields.py on lines 388..397
    functional_tests/driver_tests/test_user_group_fields.py on lines 409..418
    functional_tests/driver_tests/test_user_group_fields.py on lines 472..481
    functional_tests/driver_tests/test_user_group_fields.py on lines 491..499
    functional_tests/driver_tests/test_user_group_fields.py on lines 907..916
    functional_tests/driver_tests/test_user_group_fields.py on lines 918..927
    functional_tests/driver_tests/test_user_group_fields.py on lines 940..949

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 112.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_user_group_field(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 197..203

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 109.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_all_users_and_groups_field_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 42..48

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 109.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_group_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser, "Multi-select Specific Users and Groups": [swimGroup]})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 674..682

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 107.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_user_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 684..691

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 107.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_all_users_and_groups_field_user_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 222..229

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_all_users_and_groups_field_group_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 213..220

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 106.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_group_subgroup_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupThree")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 726..733
    functional_tests/driver_tests/test_user_group_fields.py on lines 744..752
    functional_tests/driver_tests/test_user_group_fields.py on lines 754..762

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_user_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 726..733
    functional_tests/driver_tests/test_user_group_fields.py on lines 735..742
    functional_tests/driver_tests/test_user_group_fields.py on lines 754..762

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_groups_only_field(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 205..211

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_all_users_and_groups_field_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 81..87

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_user_group_member_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userThree")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 726..733
    functional_tests/driver_tests/test_user_group_fields.py on lines 735..742
    functional_tests/driver_tests/test_user_group_fields.py on lines 744..752

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_invalid_group_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 3 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 735..742
    functional_tests/driver_tests/test_user_group_fields.py on lines 744..752
    functional_tests/driver_tests/test_user_group_fields.py on lines 754..762

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_user_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_user_group_member_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userThree")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_parent_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupCombo")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_selected_groups_field_wrong_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_other_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_group_subgroup_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupThree")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_users_members_of_group_field_user_parent_group(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            with pytest.raises(exceptions.ValidationError) as excinfo:
                pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_selected_users_field_wrong_user(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userTwo")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_invalid_group_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name="PYTHON-groupFour")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 462..470
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        def test_users_members_of_group_field_user_not_member(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userFour")
            with pytest.raises(exceptions.ValidationError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 9 other locations - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 258..266
    functional_tests/driver_tests/test_user_group_fields.py on lines 319..327
    functional_tests/driver_tests/test_user_group_fields.py on lines 378..386
    functional_tests/driver_tests/test_user_group_fields.py on lines 399..407
    functional_tests/driver_tests/test_user_group_fields.py on lines 483..489
    functional_tests/driver_tests/test_user_group_fields.py on lines 852..859
    functional_tests/driver_tests/test_user_group_fields.py on lines 861..868
    functional_tests/driver_tests/test_user_group_fields.py on lines 870..878
    functional_tests/driver_tests/test_user_group_fields.py on lines 880..888

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 103.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_groups_only_field_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(
                name=pytest.testGroups[pytest.fake.random_int(0, len(pytest.testGroups)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 50..56

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_user_group_field_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name=pytest.testUsers[pytest.fake.random_int(0, len(pytest.testUsers)-1)])
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 89..95

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_user_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 302..308

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 80.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_selected_users_field(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 837..843

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 80.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_user_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 773..779

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 79.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        def test_multi_select_specific_users_groups_field_group_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 764..771

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 79.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_group_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 250..256
    functional_tests/driver_tests/test_user_group_fields.py on lines 310..317
    functional_tests/driver_tests/test_user_group_fields.py on lines 370..376
    functional_tests/driver_tests/test_user_group_fields.py on lines 890..897

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 77.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_user_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userOne")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 250..256
    functional_tests/driver_tests/test_user_group_fields.py on lines 310..317
    functional_tests/driver_tests/test_user_group_fields.py on lines 370..376
    functional_tests/driver_tests/test_user_group_fields.py on lines 899..905

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 77.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_users_field_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimUser2 = pytest.swimlane_instance.users.get(
                display_name="PYTHON-userFour")
            theRecord = pytest.app.records.create(
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 250..256
    functional_tests/driver_tests/test_user_group_fields.py on lines 370..376
    functional_tests/driver_tests/test_user_group_fields.py on lines 890..897
    functional_tests/driver_tests/test_user_group_fields.py on lines 899..905

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 77.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 250..256
    functional_tests/driver_tests/test_user_group_fields.py on lines 310..317
    functional_tests/driver_tests/test_user_group_fields.py on lines 890..897
    functional_tests/driver_tests/test_user_group_fields.py on lines 899..905

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 77.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 5 locations. Consider refactoring.
    Open

        def test_selected_groups_field_on_save(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupOne")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 4 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 310..317
    functional_tests/driver_tests/test_user_group_fields.py on lines 370..376
    functional_tests/driver_tests/test_user_group_fields.py on lines 890..897
    functional_tests/driver_tests/test_user_group_fields.py on lines 899..905

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 77.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        def test_selected_groups_field(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser, "Selected Groups": swimGroup})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 363..368
    functional_tests/driver_tests/test_user_group_fields.py on lines 845..850

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 76.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        def test_select_specific_users_groups_field_group_create(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupTwo")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser, "Specific Users and Groups": swimGroup})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 243..248
    functional_tests/driver_tests/test_user_group_fields.py on lines 363..368

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 76.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        def test_sub_groups_of_group_field(helpers):
            swimUser = pytest.swimlane_instance.users.get(display_name="admin")
            swimGroup = pytest.swimlane_instance.groups.get(name="PYTHON-groupOne")
            theRecord = pytest.app.records.create(
                **{"Required User/Groups": swimUser, "Sub-groups of Group": swimGroup})
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 243..248
    functional_tests/driver_tests/test_user_group_fields.py on lines 845..850

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 76.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 3 locations. Consider refactoring.
    Open

            userIds = [updatedRecord["Multi-select User/Groups"][1].id,
                       updatedRecord["Multi-select User/Groups"][0].id]
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 50 mins to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 647..648
    functional_tests/driver_tests/test_user_group_fields.py on lines 667..668

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 36.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 3 locations. Consider refactoring.
    Open

            userIds = [updatedRecord["Multi-select User/Groups"][1].id,
                       updatedRecord["Multi-select User/Groups"][0].id]
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 50 mins to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 614..615
    functional_tests/driver_tests/test_user_group_fields.py on lines 647..648

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 36.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 3 locations. Consider refactoring.
    Open

            userIds = [updatedRecord["Multi-select User/Groups"][1].id,
                       updatedRecord["Multi-select User/Groups"][0].id]
    Severity: Major
    Found in functional_tests/driver_tests/test_user_group_fields.py and 2 other locations - About 50 mins to fix
    functional_tests/driver_tests/test_user_group_fields.py on lines 614..615
    functional_tests/driver_tests/test_user_group_fields.py on lines 667..668

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 36.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status