swimlane/swimlane-python

View on GitHub

Showing 441 of 441 total issues

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

    def test_user_group_does_not_equal(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('User/Groups', 'doesNotEqual', pytest.newUser1)
        assert len(report) == 3
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 6 hrs to fix
functional_tests/driver_tests/test_reporting_filters.py on lines 625..633

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

    @pytest.mark.xfail(reason="SPT-6389: This actually processes, should only work if is multi-select")
    def test_user_group_contains(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('User/Groups', 'contains', pytest.newUser1)
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 6 hrs to fix
functional_tests/driver_tests/test_reporting_filters.py on lines 597..604

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_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 3 locations. Consider refactoring.
Open

    @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
    def test_attachment_contains(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('Attachment', 'contains', None)
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 6 hrs to fix
functional_tests/driver_tests/test_reporting_filters.py on lines 755..762
functional_tests/driver_tests/test_reporting_filters.py on lines 765..772

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 104.

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

    @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
    def test_references_contains(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('Reference', 'contains', None)
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 6 hrs to fix
functional_tests/driver_tests/test_reporting_filters.py on lines 745..752
functional_tests/driver_tests/test_reporting_filters.py on lines 755..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 104.

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

    @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
    def test_comments_contains(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('Comments', 'contains', None)
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 6 hrs to fix
functional_tests/driver_tests/test_reporting_filters.py on lines 745..752
functional_tests/driver_tests/test_reporting_filters.py on lines 765..772

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 104.

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

Severity
Category
Status
Source
Language