src/tests/collate_tests/test_helpers.py
Function test_compare_dicts
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_compare_dicts():
d = Compare(
"col", "=", {"vala": "a", "valb": "b", "valc": "c"}, [], {}, include_null=True
).quantities
assert len(d) == 4
Function test_compare_lists
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_compare_lists():
d = Compare("col", "=", ["a", "b", "c"], [], {}, include_null=True).quantities
assert len(d) == 4
assert len(set(d.values())) == len(d)
assert len(set(d.keys())) == len(d)
Line too long (90 > 88 characters) Open
Open
"long_column_name = 'really long string value that is also like everything else'",
- Read upRead up
- Exclude checks
Limit all lines to a maximum of 79 characters.
There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side. The default wrapping on such
devices looks ugly. Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.
Reports error E501.
Line too long (89 > 88 characters) Open
Open
"really_long_column_name = 'really long string value that is similar to others'",
- Read upRead up
- Exclude checks
Limit all lines to a maximum of 79 characters.
There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side. The default wrapping on such
devices looks ugly. Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.
Reports error E501.
Line too long (93 > 88 characters) Open
Open
"really_long_column_name = 'really long string value that is quite alike to others'",
- Read upRead up
- Exclude checks
Limit all lines to a maximum of 79 characters.
There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side. The default wrapping on such
devices looks ugly. Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.
Reports error E501.
Line too long (97 > 88 characters) Open
Open
"really_long_column_name = 'really long string value that is also like everything else'",
- Read upRead up
- Exclude checks
Limit all lines to a maximum of 79 characters.
There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side. The default wrapping on such
devices looks ugly. Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.
Reports error E501.