swimlane/swimlane-python

View on GitHub

Showing 387 of 441 total issues

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

class TestMinMaxWordCountTextField:
    def test_min_max_word_count_exact_min(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Min Max Words Text": "hello there how"})
        assert theRecord["Min Max Words Text"] == "hello there how"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 1 other location - About 5 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 416..472

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

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

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

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

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

Refactorings

Further Reading

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

class TestMinMaxCharCountTextField:
    def test_min_max_char_count_exact_min(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Min Max Chars Text": "abcde"})
        assert theRecord["Min Max Chars Text"] == "abcde"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 1 other location - About 5 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 546..602

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

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

class TestMaxCharCountTextField:
    def test_max_char_count_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Max Chars Text": "abcdefghij"})
        assert theRecord["Max Chars Text"] == "abcdefghij"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 3 other locations - About 3 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 345..378
functional_tests/driver_tests/test_text_fields.py on lines 475..508
functional_tests/driver_tests/test_text_fields.py on lines 511..543

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

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

class TestMinCharCountTextField:
    def test_min_char_count_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Min Chars Text": "abcde"})
        assert theRecord["Min Chars Text"] == "abcde"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 3 other locations - About 3 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 381..413
functional_tests/driver_tests/test_text_fields.py on lines 475..508
functional_tests/driver_tests/test_text_fields.py on lines 511..543

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

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

class TestMinWordCountTextField:
    def test_min_word_count_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Min Words Text": "hello there how"})
        assert theRecord["Min Words Text"] == "hello there how"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 3 other locations - About 3 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 345..378
functional_tests/driver_tests/test_text_fields.py on lines 381..413
functional_tests/driver_tests/test_text_fields.py on lines 511..543

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

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

class TestMaxWordCountTextField:
    def test_max_word_count_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Text": "required", "Max Words Text": "hello there friend how are you doing on this fine"})
        assert theRecord["Max Words Text"] == "hello there friend how are you doing on this fine"
Severity: Major
Found in functional_tests/driver_tests/test_text_fields.py and 3 other locations - About 3 days to fix
functional_tests/driver_tests/test_text_fields.py on lines 345..378
functional_tests/driver_tests/test_text_fields.py on lines 381..413
functional_tests/driver_tests/test_text_fields.py on lines 475..508

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

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

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

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

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

Refactorings

Further Reading

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

class TestMinValueNumericField:
    def test_min_count_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Numeric": 101, "Min Numeric": 3})
        assert theRecord["Min Numeric"] == 3
Severity: Major
Found in functional_tests/driver_tests/test_numeric_fields.py and 1 other location - About 2 days to fix
functional_tests/driver_tests/test_numeric_fields.py on lines 162..193

Duplicated Code

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

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

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

Tuning

This issue has a mass of 309.

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

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

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

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

Refactorings

Further Reading

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

class TestMaxValueNumericField:
    def test_max_value_exact(helpers):
        theRecord = pytest.app.records.create(
            **{"Required Numeric": 101, "Max Numeric": 100})
        assert theRecord["Max Numeric"] == 100
Severity: Major
Found in functional_tests/driver_tests/test_numeric_fields.py and 1 other location - About 2 days to fix
functional_tests/driver_tests/test_numeric_fields.py on lines 128..159

Duplicated Code

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

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

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

Tuning

This issue has a mass of 309.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 309.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 309.

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

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

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

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

Refactorings

Further Reading

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

@pytest.fixture(autouse=True, scope='module')
def my_fixture(helpers):
    # setup stuff
    defaultApp = 'basic app'
    pytest.helpers = helpers
Severity: Major
Found in functional_tests/driver_tests/test_record_lock_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_record_restriction_adaptor.py on lines 5..28

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

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

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

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

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

Refactorings

Further Reading

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

@pytest.fixture(autouse=True, scope='module')
def my_fixture(helpers):
    # setup stuff
    defaultApp = 'basic app'
    pytest.helpers = helpers
functional_tests/driver_tests/test_record_lock_adaptor.py on lines 4..27

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

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-7928: There was no error about the field type, nor any changes to the value")
    def test_record_bulk_modify_append_created_by(helpers):
        swimUser = pytest.swimlane_instance.users.get(
            display_name=pytest.tempUser1['displayName'])
        defaultText = "modify created by"
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 627..643

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

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-7928: There was no error about the field type, nor any changes to the value")
    def test_record_bulk_modify_append_last_updated_by(helpers):
        swimUser = pytest.swimlane_instance.users.get(
            display_name=pytest.tempUser1['displayName'])
        defaultText = "modify last updated by"
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 609..625

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

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-7928: There was no error about the field type, nor any changes to the value")
    def test_record_bulk_modify_remove_last_updated_by(helpers):
        defaultText = "remove last updated by"
        pytest.app.records.bulk_create({'Text': defaultText}, {'Text': defaultText}, {
                                       'Text': defaultText}, {'Text': defaultText})
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 805..820

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

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-7928: There was no error about the field type, nor any changes to the value")
    def test_record_bulk_modify_remove_created_by(helpers):
        defaultText = "remove created by"
        pytest.app.records.bulk_create({'Text': defaultText}, {'Text': defaultText}, {
                                       'Text': defaultText}, {'Text': defaultText})
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 822..836

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

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_addReference_wrong_app_id(helpers):
        sourceRecord = pytest.app.records.create(
            **{'Text': pytest.fake.sentence()})
        currentRefCount = len(pytest.app.records.get(
            id=sourceRecord.id)['Reference'])
Severity: Major
Found in functional_tests/driver_tests/test_helpers_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_helpers_adaptor.py on lines 295..307

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

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_addReference_wrong_ref_field_id(helpers):
        sourceRecord = pytest.app.records.create(
            **{'Text': pytest.fake.sentence()})
        currentRefCount = len(pytest.app.records.get(
            id=sourceRecord.id)['Reference'])
Severity: Major
Found in functional_tests/driver_tests/test_helpers_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_helpers_adaptor.py on lines 269..281

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

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_clear_multi_selection(helpers):
        pytest.app.records.bulk_create({'Multi-select': ['one']}, {'Multi-select': ['one']}, {
                                       'Multi-select': ['one']}, {'Multi-select': ['one']})
        initialRecords = len(pytest.app.records.search(
            ('Multi-select', 'equals', ['one'])))
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 314..326

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

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_clear_text_list(helpers):
        pytest.app.records.bulk_create({'Text List': ['one']}, {'Text List': ['one']}, {
                                       'Text List': ['one']}, {'Text List': ['one']})
        initialRecords = len(pytest.app.records.search(
            ('Text List', 'equals', ['one'])))
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 day to fix
functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 300..312

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

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