swimlane/swimlane-python

View on GitHub
functional_tests/driver_tests/test_reporting_filters.py

Summary

Maintainability
F
3 wks
Test Coverage

File test_reporting_filters.py has 673 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import pytest
import pendulum


@pytest.fixture(autouse=True, scope='module')
Severity: Major
Found in functional_tests/driver_tests/test_reporting_filters.py - About 1 day to fix

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 106.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 106.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 106.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 106.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 104.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 104.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 104.

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, selection should not have gt, lt comparisons")
        def test_multi_selection_greater_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-select', 'greaterThanOrEqual',  ['Feb'])
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 417..424

    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.mark.xfail(reason="SPT-6389: This actually processes, selection should not have gt, lt comparisons")
        def test_multi_selection_less_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-select', 'lessThan', ['Feb'])
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 6 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 444..451

    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.mark.xfail(reason="SPT-6389: This actually processes, selection should not have gt, lt comparisons")
        def test_selection_greater_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'greaterThanOrEqual', 'two')
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 5 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 345..352

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

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, selection should not have gt, lt comparisons")
        def test_selection_less_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'lessThan', 'two')
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 5 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 372..379

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

    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_selection_does_not_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'doesNotEqual', 'two')
            assert len(report) == 3
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 48..54

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

    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

        def test_selection_equals(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'equals', 'two')
            assert len(report) == 2
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_app_reporting_adaptor.py on lines 86..92
    functional_tests/driver_tests/test_reporting_filters.py on lines 40..46

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

    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_text_does_not_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Text', 'doesNotEqual', 'Hello')
            assert len(report) == 3
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 319..325

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

    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

        def test_text_equals(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Text', 'equals', 'Hello')
            assert len(report) == 2
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_app_reporting_adaptor.py on lines 86..92
    functional_tests/driver_tests/test_reporting_filters.py on lines 311..317

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

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, excludes shouldonly work on mlti-select fields")
        def test_selection_excludes(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'excludes', 'one')
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 64..70

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

    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_text_excludes(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Text', 'excludes', 'o')
            assert len(report) == 3
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 336..343

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

    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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_multi_select_user_group_greater_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-Select User/Groups',
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 3 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 711..717
    functional_tests/driver_tests/test_reporting_filters.py on lines 719..725
    functional_tests/driver_tests/test_reporting_filters.py on lines 727..733

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

    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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_multi_select_user_group_less_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-Select User/Groups', 'lessThan',
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 3 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 719..725
    functional_tests/driver_tests/test_reporting_filters.py on lines 727..733
    functional_tests/driver_tests/test_reporting_filters.py on lines 735..741

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

    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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_multi_select_user_group_greater_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-Select User/Groups', 'greaterThan',
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 3 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 711..717
    functional_tests/driver_tests/test_reporting_filters.py on lines 727..733
    functional_tests/driver_tests/test_reporting_filters.py on lines 735..741

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

    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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_multi_select_user_group_less_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Multi-Select User/Groups', 'lessThanOrEqual',
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 3 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 711..717
    functional_tests/driver_tests/test_reporting_filters.py on lines 719..725
    functional_tests/driver_tests/test_reporting_filters.py on lines 735..741

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

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, contains shouldonly work on mlti-select fields")
        def test_selection_contains(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Selection', 'contains', 'one')
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 56..62

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

    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_text_contains(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Text', 'contains', 'e')
            assert len(report) == 4
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 327..334

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_user_group_greater_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('User/Groups', 'greaterThanOrEqual', pytest.newUser1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 549..554
    functional_tests/driver_tests/test_reporting_filters.py on lines 556..561
    functional_tests/driver_tests/test_reporting_filters.py on lines 635..640
    functional_tests/driver_tests/test_reporting_filters.py on lines 642..647
    functional_tests/driver_tests/test_reporting_filters.py on lines 649..654

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_user_group_less_than_or_equal(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('User/Groups', 'lessThanOrEqual', pytest.newUser1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 549..554
    functional_tests/driver_tests/test_reporting_filters.py on lines 556..561
    functional_tests/driver_tests/test_reporting_filters.py on lines 635..640
    functional_tests/driver_tests/test_reporting_filters.py on lines 642..647
    functional_tests/driver_tests/test_reporting_filters.py on lines 656..661

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, contains should not work on timespan fields")
        def test_timespan_contains(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Timespan', 'contains', pytest.delta2)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 556..561
    functional_tests/driver_tests/test_reporting_filters.py on lines 635..640
    functional_tests/driver_tests/test_reporting_filters.py on lines 642..647
    functional_tests/driver_tests/test_reporting_filters.py on lines 649..654
    functional_tests/driver_tests/test_reporting_filters.py on lines 656..661

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, contains should not work on timespan fields")
        def test_timespan_excludes(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Timespan', 'excludes',  pytest.delta2)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 549..554
    functional_tests/driver_tests/test_reporting_filters.py on lines 635..640
    functional_tests/driver_tests/test_reporting_filters.py on lines 642..647
    functional_tests/driver_tests/test_reporting_filters.py on lines 649..654
    functional_tests/driver_tests/test_reporting_filters.py on lines 656..661

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_user_group_greater_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('User/Groups', 'greaterThan', pytest.newUser1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 549..554
    functional_tests/driver_tests/test_reporting_filters.py on lines 556..561
    functional_tests/driver_tests/test_reporting_filters.py on lines 635..640
    functional_tests/driver_tests/test_reporting_filters.py on lines 649..654
    functional_tests/driver_tests/test_reporting_filters.py on lines 656..661

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

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, the pyDriver should be throwing an error")
        def test_user_group_less_than(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('User/Groups', 'lessThan', pytest.newUser1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 5 other locations - About 4 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 549..554
    functional_tests/driver_tests/test_reporting_filters.py on lines 556..561
    functional_tests/driver_tests/test_reporting_filters.py on lines 642..647
    functional_tests/driver_tests/test_reporting_filters.py on lines 649..654
    functional_tests/driver_tests/test_reporting_filters.py on lines 656..661

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

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, excludes should only work on list numeric fields")
        def test_numeric_excludes(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Numeric', 'excludes', 1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 3 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 197..202

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

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

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

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

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

    Refactorings

    Further Reading

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

        @pytest.mark.xfail(reason="SPT-6389: This actually processes, contains should only work on list numeric fields")
        def test_numeric_contains(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Numeric', 'contains', 1)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 3 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 204..209

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

    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_numeric_list_contains(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Numeric List', 'contains', [10, 20])
            assert len(report) == 3
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 3 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 267..271

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

    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_numeric_list_excludes(helpers):
            report = pytest.app.reports.build(
                'report-%s' % pytest.fake.word(), limit=0)
            report.filter('Numeric List', 'excludes', [10, 20])
            assert len(report) == 2
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 1 other location - About 3 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 261..265

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

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

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

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

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

    Refactorings

    Further Reading

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

        pytest.app.records.bulk_create({"Text": 'Hello', "Numeric": 123, 'Selection': 'one', 'Date & Time': pendulum.parse("Apr 1, 2020 12:00 AM -06:00", strict=False), 'User/Groups': pytest.newUser1, "Timespan": pytest.delta1, "Numeric List": [10, 20, 30], "Text List": ['a', 'b', 'c'], "Multi-select": ['Jan', 'Feb'], "Multi-Select User/Groups": [pytest.newUser1, pytest.newUser2]},
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 2 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 25..26
    functional_tests/driver_tests/test_reporting_filters.py on lines 31..31

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

    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

                                       {"Text": 'Hello', "Numeric": -1, 'Selection': 'two', 'Date & Time': pendulum.parse("May 1, 2020 12:00 AM -06:00", strict=False), 'User/Groups': pytest.newUser2, "Timespan": pytest.delta2, "Numeric List": [
                                           10, 20, 30], "Text List": ['x', 'y', 'z'], "Multi-select": ['March', 'April'], "Multi-Select User/Groups": [pytest.newUser3, pytest.newUser2]},
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 2 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 24..24
    functional_tests/driver_tests/test_reporting_filters.py on lines 31..31

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

    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

                                       {"Text": '123', "Numeric": 0, 'Selection': 'one', 'Date & Time': pendulum.parse("Apr 1, 2020 12:00 AM -06:00", strict=False), 'User/Groups': pytest.newUser2, "Timespan": pytest.delta1, "Numeric List": [20, 40, 60], "Text List": ['x', 'y', 'z'], "Multi-select": ['Jan', 'Feb'], "Multi-Select User/Groups": [pytest.newUser1, pytest.newUser3]})
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 2 hrs to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 24..24
    functional_tests/driver_tests/test_reporting_filters.py on lines 25..26

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

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

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

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

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

    Refactorings

    Further Reading

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

        pytest.delta2 = pendulum.datetime(
            2013, 1, 1, 1, 2, 3) - pendulum.datetime(2011, 12, 31, 22, 2, 3)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 18..19
    functional_tests/driver_tests/test_reporting_filters.py on lines 22..23

    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

        pytest.delta3 = pendulum.datetime(
            2012, 10, 1, 1, 2, 3) - pendulum.datetime(2011, 12, 31, 22, 2, 3)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 18..19
    functional_tests/driver_tests/test_reporting_filters.py on lines 20..21

    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

        pytest.delta1 = pendulum.datetime(
            2012, 1, 1, 1, 2, 3) - pendulum.datetime(2011, 12, 31, 22, 2, 3)
    Severity: Major
    Found in functional_tests/driver_tests/test_reporting_filters.py and 2 other locations - About 45 mins to fix
    functional_tests/driver_tests/test_reporting_filters.py on lines 20..21
    functional_tests/driver_tests/test_reporting_filters.py on lines 22..23

    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

    There are no issues that match your filters.

    Category
    Status