swimlane/swimlane-python

View on GitHub

Showing 441 of 441 total issues

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_single_select_field_case_sensitive_on_save(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Single-select": "a"})
        with pytest.raises(exceptions.ValidationError) as excinfo:
            theRecord["Single-select"] = "ONE"
Severity: Major
Found in functional_tests/driver_tests/test_selection_fields.py and 1 other location - About 6 hrs to fix
functional_tests/driver_tests/test_selection_fields.py on lines 72..78

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_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_single_select_field_empty_on_save(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Single-select": "a"})
        with pytest.raises(exceptions.ValidationError) as excinfo:
            theRecord["Single-select"] = ""
Severity: Major
Found in functional_tests/driver_tests/test_selection_fields.py and 1 other location - About 6 hrs to fix
functional_tests/driver_tests/test_selection_fields.py on lines 98..104

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

    @pytest.mark.xfail(reason="SPT-6389: This actually processes, should only work if is multi-select")
    def test_user_group_excludes(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('User/Groups', 'excludes',  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 606..613

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_user_group_equals(helpers):
        report = pytest.app.reports.build(
            'report-%s' % pytest.fake.word(), limit=0)
        report.filter('User/Groups', 'equals', pytest.newUser1)
        assert len(report) == 2
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 615..623

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

Severity
Category
Status
Source
Language