swimlane/swimlane-python

View on GitHub
functional_tests/driver_tests/test_records_bulk_adaptor.py

Summary

Maintainability
F
1 mo
Test Coverage

File test_records_bulk_adaptor.py has 837 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import pytest
import pendulum
from swimlane import exceptions
from swimlane.core.bulk import Clear, Append, Remove
# bulk_create
Severity: Major
Found in functional_tests/driver_tests/test_records_bulk_adaptor.py - About 2 days to fix

    Function test_record_bulk_delete_list_twice has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

        def test_record_bulk_delete_list_twice(helpers):
            textValue = "Delete Me twice"
            pytest.app.records.bulk_create({'Text': textValue}, {'Text': textValue}, {
                                           'Text': textValue}, {'Text': textValue})
    
    
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py - About 35 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    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_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

        @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

        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

    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

        @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(helpers):
            baseDate = pendulum.now()
            pytest.app.records.bulk_create({'Date & Time': baseDate}, {'Date & Time': baseDate}, {
                                           'Date & Time': baseDate}, {'Date & Time': baseDate})
    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 775..788

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

    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_first_created(helpers):
            baseDate = pendulum.now()
            pytest.app.records.bulk_create({'Date & Time': baseDate}, {'Date & Time': baseDate}, {
                                           'Date & Time': baseDate}, {'Date & Time': baseDate})
    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 790..803

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

    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(helpers):
            baseDate = pendulum.now()
            changeDate = pendulum.tomorrow()
            pytest.app.records.bulk_create({'Date & Time': baseDate}, {'Date & Time': baseDate}, {
    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 579..592

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

    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_first_created(helpers):
            baseDate = pendulum.now()
            changeDate = pendulum.tomorrow()
            pytest.app.records.bulk_create({'Date & Time': baseDate}, {'Date & Time': baseDate}, {
    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 594..607

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

    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(helpers):
            pytest.app.records.bulk_create({'Text': '9999999'}, {'Text': '9999999'}, {
                                           'Text': '9999999'}, {'Text': '9999999'})
            initialRecords = len(pytest.app.records.search(
                ('Text', 'equals', '9999999')))
    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 286..298

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

    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_selection(helpers):
            pytest.app.records.bulk_create({'Selection': '123'}, {'Selection': '123'}, {
                                           'Selection': '123'}, {'Selection': '123'})
            initialRecords = len(pytest.app.records.search(
                ('Selection', 'equals', '123')))
    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 272..284

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

    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-7932: There was no error about the field type, but the passed in targetRecord, which is a record class, thinks it is a tuple??")
        def test_record_bulk_modify_append_references(helpers):
            baseText = "Has Reference"
            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 1 day to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 861..873

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

    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-7932: There was no error about the field type, but the passed in targetRecord, which is a record class, thinks it is a tuple??")
        def test_record_bulk_modify_remove_references(helpers):
            baseText = "Has Reference"
            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 1 day to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 667..679

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

    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_text(helpers):
            pytest.app.records.bulk_create({'Text': 'hello'}, {'Text': 'hello goodbye'}, {
                                           'Text': 'goodbye'}, {'Text': 'hello goodbye fred'})
            initialRecords = len(pytest.app.records.search(
                ('Text', 'contains', 'hello')))
    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 497..510

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

    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_selection(helpers):
            pytest.app.records.bulk_create({'Selection': 'New Value'}, {'Selection': 'New Value'}, {
                                           'Selection': 'New Value'}, {'Selection': 'New Value'})
            initialRecords = len(pytest.app.records.search(
    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 470..482

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

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

        def test_record_bulk_modify_remove_comments(helpers):
            baseText = "Has Comment"
            pytest.app.records.bulk_create({'Text': baseText}, {'Text': baseText}, {
                                           'Text': baseText}, {'Text': baseText})
            with pytest.raises(ValueError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 657..665

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 99.

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

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

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

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

    Refactorings

    Further Reading

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

        def test_record_bulk_modify_append_comments(helpers):
            baseText = "Has Comment"
            pytest.app.records.bulk_create({'Text': baseText}, {'Text': baseText}, {
                                           'Text': baseText}, {'Text': baseText})
            with pytest.raises(ValueError) as excinfo:
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 851..859

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 99.

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

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

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

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

    Refactorings

    Further Reading

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

            pytest.app.records.bulk_create({'Text List': ['bob']}, {'Text List': ['bob', 'goodbye']}, {
                                           'Text List': ['bob']}, {'Text List': ['bob', 'goodbye', 'fred']})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 526..527

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

    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.app.records.bulk_create({'Text List': ['hello']}, {'Text List': ['hello', 'goodbye']}, {
                                           'Text List': ['goodbye']}, {'Text List': ['hello', 'goodbye', 'fred']})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 727..728

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

    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

            for record in pytest.app.records.search(('Text', 'equals', baseText)):
                record['Reference'].add(targetRecord)
                record.save()
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 440..442

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

    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

            for record in pytest.app.records.search(('Text', 'equals', baseText)):
                record['Comments'].comment(baseText)
                record.save()
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 457..459

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

    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

                listDiff = list(
                    set(recordedListValues[record.id]) - set(list(record['Numeric List'])))
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 896..897

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 41.

    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

                listDiff = list(
                    set(recordedListValues[record.id]) - set(list(record['Text List'])))
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 920..921

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

    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.app.records.bulk_create({'Multi-Select Users': [swimUser]}, {'Multi-Select Users': [
                                           swimUser]}, {'Multi-Select Users': [swimUser]}, {'Multi-Select Users': [swimUser]})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 345..346

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

    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.app.records.bulk_create({'Multi-Select Users': [swimUser]}, {'Multi-Select Users': [
                                           swimUser]}, {'Multi-Select Users': [swimUser]}, {'Multi-Select Users': [swimUser]})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 554..555

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

    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

            with pytest.raises(ValueError) as excinfo:
                pytest.app.records.bulk_modify(
                    ('Text', 'equals', baseText), values={'Attachment': Clear()})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 443..445

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

    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

            with pytest.raises(ValueError) as excinfo:
                pytest.app.records.bulk_modify(
                    ('Text', 'equals', baseText), values={'Attachment': Clear()})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 430..432

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

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

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

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

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

    Refactorings

    Further Reading

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

            assert len(pytest.app.records.search(('Text', 'equals', None),
                                                 ('Numeric', 'equals', 99))) == 4 + initial99Records
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 105..106
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 241..242

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

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

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

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

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

    Refactorings

    Further Reading

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

            assert len(pytest.app.records.search(('Text', 'equals', None),
                                                 ('Numeric', 'equals', 4321))) == 4 + initial4321Records
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 105..106
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 188..189

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

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

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

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

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

    Refactorings

    Further Reading

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

            assert len(pytest.app.records.search(('Text', 'equals', None),
                                                 ('Numeric', 'equals', 234))) == 4+initalRecords
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 1 hr to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 188..189
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 241..242

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

    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

            records = pytest.app.records.bulk_modify(
                ('Multi-Select Users', 'contains', [swimUser]), values={'Multi-Select Users': Remove([swimUser2])})
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 45 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 558..559

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

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

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

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

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

    Refactorings

    Further Reading

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

            records = pytest.app.records.bulk_modify(
                ('Multi-select', 'equals', ['one']), values={'Multi-select': Append(["two"])})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 719..720
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 729..730

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

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

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

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

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

    Refactorings

    Further Reading

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

            records = pytest.app.records.bulk_modify(
                ('Multi-select', 'contains', ['three']), values={'Multi-select': Remove(["three"])})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 517..518
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 729..730

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

    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

            records = pytest.app.records.bulk_modify(
                ('Multi-Select Users', 'equals', [swimUser]), values={'Multi-Select Users': Append([swimUser2])})
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 45 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 754..755

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

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

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

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

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

    Refactorings

    Further Reading

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

            records = pytest.app.records.bulk_modify(
                ('Text List', 'contains', ['bob']), values={'Text List': Remove(["bob"])})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 517..518
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 719..720

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

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

            assert str(excinfo.value) == '"<App: %s (%s)> has no field \'%s\'"' % (
                pytest.app.name, pytest.app.acronym, randomFieldName)
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 7 other locations - About 35 mins to fix
    functional_tests/driver_tests/test_records_adaptor.py on lines 57..58
    functional_tests/driver_tests/test_records_adaptor.py on lines 135..136
    functional_tests/driver_tests/test_records_adaptor.py on lines 143..144
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 51..52
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 131..132
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 212..213
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 224..225

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

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

            assert str(excinfo.value) == '"<App: %s (%s)> has no field \'%s\'"' % (
                pytest.app.name, pytest.app.acronym, randomFieldName)
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 7 other locations - About 35 mins to fix
    functional_tests/driver_tests/test_records_adaptor.py on lines 57..58
    functional_tests/driver_tests/test_records_adaptor.py on lines 135..136
    functional_tests/driver_tests/test_records_adaptor.py on lines 143..144
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 51..52
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 120..121
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 212..213
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 224..225

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

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

            assert str(excinfo.value) == '"<App: %s (%s)> has no field \'%s\'"' % (
                pytest.app.name, pytest.app.acronym, randomValue)
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 7 other locations - About 35 mins to fix
    functional_tests/driver_tests/test_records_adaptor.py on lines 57..58
    functional_tests/driver_tests/test_records_adaptor.py on lines 135..136
    functional_tests/driver_tests/test_records_adaptor.py on lines 143..144
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 51..52
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 120..121
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 131..132
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 212..213

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

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

            assert str(excinfo.value) == '"<App: %s (%s)> has no field \'%s\'"' % (
                pytest.app.name, pytest.app.acronym, randomFieldName)
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 7 other locations - About 35 mins to fix
    functional_tests/driver_tests/test_records_adaptor.py on lines 57..58
    functional_tests/driver_tests/test_records_adaptor.py on lines 135..136
    functional_tests/driver_tests/test_records_adaptor.py on lines 143..144
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 120..121
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 131..132
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 212..213
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 224..225

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

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

            assert str(excinfo.value) == '"<App: %s (%s)> has no field \'%s\'"' % (
                pytest.app.name, pytest.app.acronym, randomFieldName)
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 7 other locations - About 35 mins to fix
    functional_tests/driver_tests/test_records_adaptor.py on lines 57..58
    functional_tests/driver_tests/test_records_adaptor.py on lines 135..136
    functional_tests/driver_tests/test_records_adaptor.py on lines 143..144
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 51..52
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 120..121
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 131..132
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 224..225

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

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

            pytest.app.records.bulk_create({'Numeric': 99}, {'Numeric': 99}, {
                                           'Numeric': 99}, {'Numeric': 99})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

    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

            assert len(pytest.app.records.search(
                ('Text', 'equals', None), ('Numeric', 'equals', None))) == 0
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 78..79

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

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

            pytest.app.records.bulk_create({'Numeric': 234}, {'Numeric': 234}, {
                                           'Numeric': 234}, {'Numeric': 234})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

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

            pytest.app.records.bulk_create({'Numeric': 123}, {'Numeric': 123}, {
                                           'Numeric': 123}, {'Numeric': 1234})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

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

            pytest.app.records.bulk_create({'Numeric': 66}, {'Numeric': 66}, {
                                           'Numeric': 66}, {'Numeric': 66})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

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

            pytest.app.records.bulk_create({'Numeric': 123}, {'Numeric': 123}, {
                                           'Numeric': 123}, {'Numeric': 1234})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487

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

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

            pytest.app.records.bulk_create({'Numeric': 99}, {'Numeric': 99}, {
                                           'Numeric': 99}, {'Numeric': 99})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 259..260
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

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

            pytest.app.records.bulk_create({'Numeric': 9999999}, {'Numeric': 9999999}, {
                                           'Numeric': 9999999}, {'Numeric': 9999999})
    Severity: Major
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 6 other locations - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 103..104
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 166..167
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 181..182
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 232..233
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 486..487
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 694..695

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

    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

            assert len(pytest.app.records.search(('Text', 'equals', None),
                                                 ('Numeric', 'equals', 66))) == initial66Records
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 110..111

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

    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

            assert len(pytest.app.records.search(('Text', 'equals', None),
                                                 ('Numeric', 'equals', 234))) == initalRecords
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 239..240

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

    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

            assert len(pytest.app.records.search(
                ('Text', 'equals', None), ('Numeric', 'equals', None))) == 0
    Severity: Minor
    Found in functional_tests/driver_tests/test_records_bulk_adaptor.py and 1 other location - About 30 mins to fix
    functional_tests/driver_tests/test_records_bulk_adaptor.py on lines 143..144

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status