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_add_restriction_Group_and_User_Remove_User(helpers):
        tempRecord = pytest.app.records.create(
            **{'numeric': 123, 'Text': '2w3d'})
        swimGroup = pytest.swimlane_instance.groups.get(
            id=pytest.newGroup1['id'])
functional_tests/driver_tests/test_record_restriction_adaptor.py on lines 258..268

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

    def test_add_restriction_Group_and_User_Remove_Group(helpers):
        tempRecord = pytest.app.records.create(
            **{'numeric': 123, 'Text': '2w3d'})
        swimGroup = pytest.swimlane_instance.groups.get(
            id=pytest.newGroup1['id'])
functional_tests/driver_tests/test_record_restriction_adaptor.py on lines 270..280

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

    def test_record_bulk_modify_clear_first_created(helpers):
        baseTime = pendulum.now()
        pytest.app.records.bulk_create({'Date & Time': baseTime}, {'Date & Time': baseTime}, {
                                       'Date & Time': baseTime}, {'Date & Time': baseTime})
        emptyNumericRecords = len(pytest.app.records.search(
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 3 other locations - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 385..395
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 397..407
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 409..419

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

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_record_bulk_modify_clear_last_updated_by(helpers):
        baseTime = pendulum.now()
        pytest.app.records.bulk_create({'Date & Time': baseTime}, {'Date & Time': baseTime}, {
                                       'Date & Time': baseTime}, {'Date & Time': baseTime})
        emptyNumericRecords = len(pytest.app.records.search(
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 3 other locations - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 373..383
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 385..395
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 397..407

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

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_record_bulk_modify_clear_last_updated(helpers):
        baseTime = pendulum.now()
        pytest.app.records.bulk_create({'Date & Time': baseTime}, {'Date & Time': baseTime}, {
                                       'Date & Time': baseTime}, {'Date & Time': baseTime})
        emptyNumericRecords = len(pytest.app.records.search(
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 3 other locations - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 373..383
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 397..407
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 409..419

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

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_record_bulk_modify_clear_created_by(helpers):
        baseTime = pendulum.now()
        pytest.app.records.bulk_create({'Date & Time': baseTime}, {'Date & Time': baseTime}, {
                                       'Date & Time': baseTime}, {'Date & Time': baseTime})
        emptyNumericRecords = len(
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 3 other locations - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 373..383
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 385..395
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 409..419

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

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

    def test_comment_rich_text_on_save_exact(helpers):
        theRecord = pytest.app.records.create(**{"Required Text": "required"})
        commentText = pytest.fake.sentence()
        comments = theRecord["Comments"]
        comments.comment(commentText, rich_text=True)
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_text_fields.py on lines 676..684

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_comment_rich_text_false_on_save_exact(helpers):
        theRecord = pytest.app.records.create(**{"Required Text": "required"})
        commentText = pytest.fake.sentence()
        comments = theRecord["Comments"]
        comments.comment(commentText, rich_text=False)
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_text_fields.py on lines 666..674

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_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 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_record_bulk_modify_append_attachment(helpers):
        baseText = "Has Attachment"
        fileName = '6.65kB.json'
        pytest.app.records.bulk_create({'Text': baseText}, {'Text': baseText}, {
                                       'Text': baseText}, {'Text': baseText})
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 7 hrs to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 839..849

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

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_record_bulk_modify_remove_attachment(helpers):
        baseText = "remove Attachment"
        fileName = '6.65kB.json'
        pytest.app.records.bulk_create({'Text': baseText}, {'Text': baseText}, {
                                       'Text': baseText}, {'Text': baseText})
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 7 hrs to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 645..655

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

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

Severity
Category
Status
Source
Language