repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
wemake-services/wemake-python-styleguide
train
550
c4414c8c23012277fcfe71250dbc73df72083769
train
tests/test_logic/test_complexity/test_annotations_complexity.py
train
wemake-services/wemake-python-styleguide:tests/test_logic/test_complexity/test_annotations_complexity.py
35
4
assert
test_get_annotation_complexity
import pytest from wemake_python_styleguide.logic.complexity import annotations @pytest.mark.parametrize(('annotation', 'complexity'), [ # simple annotations ('str', 1), ('int', 1), ('List', 1), ('List[str]', 2), ('List[int]', 2), ('Dict[str, int]', 2), # empty values ('Literal["...
complexity
modified
b1d34b2150622760468ae42bdf387fdd6a108ff735e5a2606f9eac183ce4fefa
assert|test_get_annotation_complexity|import pytest from wemake_python_styleguide.logic.complexity import annotations @pytest.mark.parametrize(('annotation', 'complexity'), [ # simple annotations ('str', 1), ('int', 1), ('List', 1), ('List[str]', 2), ('List[int]', 2), ('Dict[str, int]', 2), # empty values ('Literal[""]...
complexity
32
4
wemake-services/wemake-python-styleguide
train
551
ed2b41cf5f8526b1cc479d243fadd64f4396c901
train
tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
228
4
assert_*
test_multiple_assignments
import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) from wemake_python_stylegu...
[WrongUnpackingViolation])
modified
51cea2e177514042fa5779373c5de19016ad8466d6fad6fa7d9b394711d42cf5
assert_*|test_multiple_assignments|import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) from wem...
[WrongUnpackingViolation])
226
4
wemake-services/wemake-python-styleguide
train
551
ed2b41cf5f8526b1cc479d243fadd64f4396c901
train
tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
276
4
assert_*
test_single_element_destructing
import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) from wemake_python_stylegu...
[SingleElementDestructuringViolation])
modified
31f3281162ed056893ac301981385841abcb0f8ddf22118146cbc896aa3ddedd
assert_*|test_single_element_destructing|import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) fr...
[SingleElementDestructuringViolation])
274
4
wemake-services/wemake-python-styleguide
train
551
ed2b41cf5f8526b1cc479d243fadd64f4396c901
train
tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_assign/test_unpacking_rules.py
306
4
assert_*
test_element_getting_by_unpacking
import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) from wemake_python_stylegu...
[GettingElementByUnpackingViolation])
added
81154a73d3fc1a10d3c3aac67b54686888cc3ce63edf6d30853093d1be18bd55
assert_*|test_element_getting_by_unpacking|import pytest from wemake_python_styleguide.violations.best_practices import ( GettingElementByUnpackingViolation, SingleElementDestructuringViolation, WrongUnpackingViolation, ) from wemake_python_styleguide.violations.consistency import ( UnpackingIterableToListViolation, ) ...
null
null
null
wemake-services/wemake-python-styleguide
train
552
102da9d6c0aba947f8370d3e1724133b2f7d95f2
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
38
4
assert
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
pkg_version
modified
227f243394d0874ea8c797ab9047e8997bdcbea43ec2b50b8869fadfaf8810ad
assert||""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``...
pkg_version
37
4
wemake-services/wemake-python-styleguide
train
552
102da9d6c0aba947f8370d3e1724133b2f7d95f2
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
82
4
assert_*
test_formatter
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_{0}'.format(output))
modified
28dfe9708d770287d3180f10ca5721a2314839aa4d2507e8f9041eee3ffa074a
assert_*|test_formatter|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We a...
'formatter_{0}'.format(output))
81
4
wemake-services/wemake-python-styleguide
train
552
102da9d6c0aba947f8370d3e1724133b2f7d95f2
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
118
4
assert_*
test_formatter_correct
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_correct_{0}'.format(output))
modified
f33ca7097596cd86a09c5baaf918371efd474fa56969b0b2bf6b3e9b781370c9
assert_*|test_formatter_correct|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest...
'formatter_correct_{0}'.format(output))
117
4
wemake-services/wemake-python-styleguide
train
552
102da9d6c0aba947f8370d3e1724133b2f7d95f2
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
155
4
assert_*
test_ipynb
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_ipynb')
modified
3df0d6d455489c599d203b5afbba0251b3dec82d61e1643bbc21cf6bfc87e3e9
assert_*|test_ipynb|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also ...
'formatter_ipynb')
153
4
wemake-services/wemake-python-styleguide
train
553
b13e8794b4d06541578b01b739737b21aacc1557
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
158
4
assert_*
test_ipynb
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_ipynb')
modified
f64cc9122d78e1691676a928edd9bad9e52c59d4b2290cca003f8e95c80a76ab
assert_*|test_ipynb|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also ...
'formatter_ipynb')
155
4
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
84
4
assert_*
test_formatter
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_{0}'.format(output))
modified
09e49282bc458ef273ced13c68658c28d6b7a19170f580fc4e05ccc67521a557
assert_*|test_formatter|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We a...
'formatter_{0}'.format(output))
82
4
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
122
4
assert_*
test_formatter_correct
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_correct_{0}'.format(output))
added
8e381881679f3cf9e9b901c7fe35dc2d9989b9ac5db08a9e518adb0f387adf06
assert_*|test_formatter_correct|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest...
null
null
null
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
162
4
assert_*
test_ipynb
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_ipynb')
added
fcecfe1b9ac6e50b3db57ecc4789e38e30342c1b5aa4361e6ffd305eee103e0b
assert_*|test_ipynb|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also ...
null
null
null
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
19
8
assert
test_all_violations_have_versionadded
from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): fo...
violation.__doc__
added
b9634044287fd057c1a20f6a41cd063e42fc2d6c236cdf84f01ec0f21d631ec9
assert|test_all_violations_have_versionadded|from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_...
null
null
null
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
26
8
assert
test_violation_name
from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): fo...
class_name.endswith('Violation')
added
043bde7c8d1cf7085ad68faf7a5f4d82fb678abb7a2bcc030b69250ad29fe866
assert|test_violation_name|from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items()...
null
null
null
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
32
8
assert
test_violation_template_ending
from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): fo...
not violation.error_template.endswith('.')
added
1dafc15cdeda8f89c3fe68afbb22cbfd1633e22b7d7f7a40a1d2c5bd7db31117
assert|test_violation_template_ending|from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violati...
null
null
null
wemake-services/wemake-python-styleguide
train
554
a6e32b9eab3970bb2d09fbc5b611af2654896ab4
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
40
12
assert
test_previous_codes_versionchanged
from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): fo...
len(violation.previous_codes)
added
3b3d02eef6a932f5cf7687457093469d15d344df66f6ee660f1d1da0cc983083
assert|test_previous_codes_versionchanged|from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_vio...
null
null
null
wemake-services/wemake-python-styleguide
train
555
88afa8c1a33bf945834b6cc98bffe0280376df0b
train
tests/test_visitors/test_ast/test_classes/test_method_order.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_method_order.py
137
4
assert_*
test_incorrect_method_order
import pytest from wemake_python_styleguide.violations.consistency import ( WrongMethodOrderViolation, ) from wemake_python_styleguide.visitors.ast.classes import ( ClassMethodOrderVisitor, ) correct_method_order = """ class Test(object): def __init_subclass__(cls): ... def __new__(self): ...
[WrongMethodOrderViolation])
added
7cb6ea93373eb5abeac0fad997d7ccc017bfb44a3082709fd1392b91e052b786
assert_*|test_incorrect_method_order|import pytest from wemake_python_styleguide.violations.consistency import ( WrongMethodOrderViolation, ) from wemake_python_styleguide.visitors.ast.classes import ( ClassMethodOrderVisitor, ) correct_method_order = """ class Test(object): def __init_subclass__(cls): ... def __new__(...
null
null
null
wemake-services/wemake-python-styleguide
train
556
7220df1c33af6e802cf06f4890a1c32812de12fb
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
68
8
assert
test_all_violations_doc_start_with_full_code
from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): fo...
violation.__doc__.lstrip().startswith(violation.full_code)
added
30feb48653aff78f098da033e8a9a7c32ab8aadae96986ef4b5dfd76981715a5
assert|test_all_violations_doc_start_with_full_code|from wemake_python_styleguide.options.config import Configuration FORMATTING_OPTIONS = frozenset(( '--show-violation-links', )) def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_...
null
null
null
wemake-services/wemake-python-styleguide
train
556
7220df1c33af6e802cf06f4890a1c32812de12fb
train
tests/test_violations/test_implementation.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_implementation.py
22
4
assert
test_visitor_returns_location
import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor` ...
'WPS001'
added
5c57900bacf082d09692a5d488c1cec76a15c0bf6c8538facf09a56d1dc13fd4
assert|test_visitor_returns_location|import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor`...
null
null
null
wemake-services/wemake-python-styleguide
train
556
7220df1c33af6e802cf06f4890a1c32812de12fb
train
tests/test_violations/test_implementation.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_implementation.py
23
4
assert
test_visitor_returns_location
import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor` ...
'Yells at cloud.'
added
9a1786a6c9517d705ac2f64c338baad996137b408179146b004b5a6de337753e
assert|test_visitor_returns_location|import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor`...
null
null
null
wemake-services/wemake-python-styleguide
train
556
7220df1c33af6e802cf06f4890a1c32812de12fb
train
tests/test_violations/test_implementation.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_implementation.py
26
4
assert
test_visitor_returns_location
import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor` ...
(0, 0, 'WPS001 violation')
added
cfcb326fe8dcd50115d371014a1ff3c37f05d21efd8b22bd3ab8ee3c0a306130
assert|test_visitor_returns_location|import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor`...
null
null
null
wemake-services/wemake-python-styleguide
train
556
7220df1c33af6e802cf06f4890a1c32812de12fb
train
tests/test_violations/test_implementation.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_implementation.py
31
9
pytest.raises
test_violation_must_have_docstring
import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `BaseNodeVisitor` ...
TypeError, match=re.escape( 'Please include a docstring documenting ' + "<class 'test_implementation.test_violation_must_have_docstring." + "<locals>.IShallNotPass'>", ))
added
cf5cb9b2080c96fa2555004e8ea3053835528f971db3ace26bfacb88e9a7174a
pytest.raises|test_violation_must_have_docstring|import ast import re import pytest from wemake_python_styleguide.violations.base import ASTViolation class NewViolation(ASTViolation): """ Yells at cloud. Yay, I'm a docstring! """ code = 1 error_template = '{0}' def test_visitor_returns_location(): """Ensures that `Base...
null
null
null
wemake-services/wemake-python-styleguide
train
557
52efea1048e6e867d88dd028e2d0fbede3c7c15d
train
tests/test_visitors/test_ast/test_complexity/test_counts/test_tuple_unpack_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_counts/test_tuple_unpack_length.py
71
4
assert_*
test_unpack_length_violation
import pytest from wemake_python_styleguide.violations.complexity import ( TooLongTupleUnpackViolation, ) from wemake_python_styleguide.visitors.ast.complexity.counts import ( TupleUnpackVisitor, ) short_unpack = 'a, b = (1, 2)' short_starred_unpack = 'a, b, *rest = (1, 2, 3, 4, 5)' single_unpack = 'result = ...
[TooLongTupleUnpackViolation])
modified
c5aac04dc999544a1fce9cc2ec1bec516361ddddd107c3ad5ff20901ea0ef148
assert_*|test_unpack_length_violation|import pytest from wemake_python_styleguide.violations.complexity import ( TooLongTupleUnpackViolation, ) from wemake_python_styleguide.visitors.ast.complexity.counts import ( TupleUnpackVisitor, ) short_unpack = 'a, b = (1, 2)' short_starred_unpack = 'a, b, *rest = (1, 2, 3, 4, 5)...
[TooLongTupleUnpackViolation])
71
4
wemake-services/wemake-python-styleguide
train
557
52efea1048e6e867d88dd028e2d0fbede3c7c15d
train
tests/test_visitors/test_ast/test_complexity/test_counts/test_tuple_unpack_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_counts/test_tuple_unpack_length.py
72
4
assert_*
test_unpack_length_violation
import pytest from wemake_python_styleguide.violations.complexity import ( TooLongTupleUnpackViolation, ) from wemake_python_styleguide.visitors.ast.complexity.counts import ( TupleUnpackVisitor, ) short_unpack = 'a, b = (1, 2)' short_starred_unpack = 'a, b, *rest = (1, 2, 3, 4, 5)' single_unpack = 'result = ...
option_values.max_tuple_unpack_length)
modified
e665af11e7a8d97b45971263c485cbd0be9208362b0d4cfb9e7d9564eb352330
assert_*|test_unpack_length_violation|import pytest from wemake_python_styleguide.violations.complexity import ( TooLongTupleUnpackViolation, ) from wemake_python_styleguide.visitors.ast.complexity.counts import ( TupleUnpackVisitor, ) short_unpack = 'a, b = (1, 2)' short_starred_unpack = 'a, b, *rest = (1, 2, 3, 4, 5)...
option_values.max_tuple_unpack_length)
72
4
wemake-services/wemake-python-styleguide
train
557
52efea1048e6e867d88dd028e2d0fbede3c7c15d
train
tests/test_visitors/test_ast/test_conditions/test_negated_conditions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_conditions/test_negated_conditions.py
109
4
assert_*
test_wrong_negated_complex_conditions
import pytest from wemake_python_styleguide.violations.refactoring import ( NegatedConditionsViolation, ) from wemake_python_styleguide.visitors.ast.conditions import IfStatementVisitor if_expression = '1 if {0} else 2' simple_conditions = """ if {0}: ... """ complex_elif_conditions = """ if {0}: ... eli...
[NegatedConditionsViolation])
modified
386b69c738f308e7407c806e6be8b24da858724a691005ad68209c94e66b873b
assert_*|test_wrong_negated_complex_conditions|import pytest from wemake_python_styleguide.violations.refactoring import ( NegatedConditionsViolation, ) from wemake_python_styleguide.visitors.ast.conditions import IfStatementVisitor if_expression = '1 if {0} else 2' simple_conditions = """ if {0}: ... """ complex_elif_...
[NegatedConditionsViolation])
109
4
wemake-services/wemake-python-styleguide
train
557
52efea1048e6e867d88dd028e2d0fbede3c7c15d
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
72
4
assert_*
test_false_condition_keywords
import pytest from wemake_python_styleguide.compat.constants import PY38 from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert...
[WrongKeywordConditionViolation])
modified
854e300f83ffcf7126f8259018fc0aa98065f61a774b7ae101749ec45e5f373e
assert_*|test_false_condition_keywords|import pytest from wemake_python_styleguide.compat.constants import PY38 from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ w...
[WrongKeywordConditionViolation])
72
4
wemake-services/wemake-python-styleguide
train
557
52efea1048e6e867d88dd028e2d0fbede3c7c15d
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
95
4
assert_*
test_false_assert_condition_keywords
import pytest from wemake_python_styleguide.compat.constants import PY38 from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert...
[WrongKeywordConditionViolation])
modified
1d40202a442c28e5cff8b586c0289ec067f6d9b914be5a2b378e3d00e5a88267
assert_*|test_false_assert_condition_keywords|import pytest from wemake_python_styleguide.compat.constants import PY38 from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template ...
[WrongKeywordConditionViolation])
95
4
wemake-services/wemake-python-styleguide
train
558
8cc0c25bd5a8fe04c986da033bf2d9bfc9c9a41d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
331
12
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
modified
a181b2bf729d2d1163fe63821b61008f8b77417b08036b82c097c94a606c8783
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors
330
12
wemake-services/wemake-python-styleguide
train
558
8cc0c25bd5a8fe04c986da033bf2d9bfc9c9a41d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
335
8
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors.get(found_error)
modified
a0cfde6c15fc9d722e2fa6d032ee4d0200b881d7a81d8c3f79fd80178f59bec0
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors.get(found_error)
334
8
wemake-services/wemake-python-styleguide
train
558
8cc0c25bd5a8fe04c986da033bf2d9bfc9c9a41d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
344
4
assert
test_codes
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_violations)
modified
c6954eca6fb3348ca497baacf2d963a08805d3b6c0df08e7cabcf01334e9d53b
assert|test_codes|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/lat...
len(all_violations)
343
4
wemake-services/wemake-python-styleguide
train
558
8cc0c25bd5a8fe04c986da033bf2d9bfc9c9a41d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
429
4
assert
test_noqa_fixture_disabled_no_control
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_controlled_violations)
modified
ee5c8bea703531d1b89fcbcd9bff6cc61275cc741512dceee3cc28cca61578b0
assert|test_noqa_fixture_disabled_no_control|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-pytho...
len(all_controlled_violations)
428
4
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
37
4
assert
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
pkg_version
modified
d6092ee8f1fef61c5151e6a4075eb82b45c75996dfb725647bf21a5304257d2a
assert||""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``...
pkg_version
38
4
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
83
4
assert_*
test_formatter
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_{0}'.format(output))
modified
59a8b0054ca430d00274f472b35f1fa103d9d9400fb22452c28028db2aa5ed7a
assert_*|test_formatter|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We a...
'formatter_{0}'.format(output))
84
4
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
121
4
assert_*
test_formatter_correct
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_correct_{0}'.format(output))
modified
07a613ca68603d595856ed945ff1260dd31b7811e2fc0a0366f977884c1a631e
assert_*|test_formatter_correct|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest...
'formatter_correct_{0}'.format(output))
122
4
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_formatter/test_formatter_output.py
train
wemake-services/wemake-python-styleguide:tests/test_formatter/test_formatter_output.py
157
4
assert_*
test_ipynb
""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also don't use ``abso...
'formatter_ipynb')
added
7d385fdbee0d04e41d8463769fa16d2a3621dafe1bfce67ef2582ded5328c734
assert_*|test_ipynb|""" We use direct string assertiong on the formatter. So, no unit tests for formatter, only e2e ones. We use ``snapshottest`` to render and assert equality of the output: https://github.com/syrusakbary/snapshottest To update snapshots use ``--snapshot-update`` flag, when running ``pytest``. We also ...
null
null
null
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_visitors/conftest.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/conftest.py
39
8
assert
from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: Typ...
len(real_errors)
modified
c46f807bc020040435a9279d3913b52b91fc93d9d1f6d56373be1459939ace35
assert||from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: TypeAlias ...
len(real_errors)
39
8
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_visitors/conftest.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/conftest.py
42
12
assert
from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: Typ...
errors[index].code
modified
32b2c7f0e8c5c5387d8f6a2d3fc82e712f5bc6d9bd30ee4502298007871750bb
assert||from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: TypeAlias ...
errors[index].code
42
12
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_visitors/conftest.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/conftest.py
75
8
assert
from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: Typ...
violation.error_template
modified
fd7e54dc66d296dbc029d85e87eb2cf4780c10858836ada1e66a9f7f78e17905
assert||from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: TypeAlias ...
violation.error_template
75
8
wemake-services/wemake-python-styleguide
train
560
534008bb26577ebad9da6cbbf2b15cdc42c6ecb9
train
tests/test_visitors/conftest.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/conftest.py
83
8
assert
from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: Typ...
violation.message()
modified
679832791f317e8c67f2d3d24ebb27557d09fc2898ecfa26ff0eee257335523c
assert||from typing import Optional, Sequence, Tuple, Type, Union import pytest from typing_extensions import Final, TypeAlias from wemake_python_styleguide.violations.base import ( ASTViolation, BaseViolation, TokenizeViolation, ) from wemake_python_styleguide.visitors.base import BaseVisitor _IgnoredTypes: TypeAlias ...
violation.message()
83
8
wemake-services/wemake-python-styleguide
train
561
e8c548578b439d37ba977cad9ffe7bb6b9d91c89
train
tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
204
4
assert_*
test_func_expression_overuse
import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {0} {1} """ function_...
[OverusedExpressionViolation])
modified
60df6561fb680e3e4871ae696b04cfc49af0107f43f137a9dc41fa1e88ab1e3d
assert_*|test_func_expression_overuse|import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {0}...
[OverusedExpressionViolation])
202
4
wemake-services/wemake-python-styleguide
train
561
e8c548578b439d37ba977cad9ffe7bb6b9d91c89
train
tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
225
4
assert_*
test_module_expression_overuse
import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {0} {1} """ function_...
[OverusedExpressionViolation])
modified
22cfed637fa87db0e78474f0fe55e5fbb5f7d3e501878aa5885c2840523a7b71
assert_*|test_module_expression_overuse|import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {...
[OverusedExpressionViolation])
223
4
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_async_yield_magic_methods.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_async_yield_magic_methods.py
67
4
assert_*
test_wrong_async_magic_used
import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self, *args, **kwargs): {1} """ async_method = """ class Example(object): async def...
[AsyncMagicMethodViolation])
added
c59a2209a6bf13e78d8a125f78362cbaff36b4b8bcacb6ca3967b2defbdf16fb
assert_*|test_wrong_async_magic_used|import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self, *args, **kwargs): {1} """ async_method = """ class Example(...
null
null
null
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_async_yield_magic_methods.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_async_yield_magic_methods.py
68
4
assert_*
test_wrong_async_magic_used
import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self, *args, **kwargs): {1} """ async_method = """ class Example(object): async def...
method)
added
6314d48c0c35f2e46067b565c9e104c6e5ece66855c273d1ff15933dc221e10f
assert_*|test_wrong_async_magic_used|import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self, *args, **kwargs): {1} """ async_method = """ class Example(...
null
null
null
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
53
4
assert_*
test_magic_generator
import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_template = """ class Test(object): @cl...
[YieldMagicMethodViolation])
modified
bf9ad5240411a0c93e01ed64c4338c47fae555832de44e75c09dd44c5682df5e
assert_*|test_magic_generator|import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_template = """ class Test(o...
[YieldMagicMethodViolation])
50
4
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
54
4
assert_*
test_magic_generator
import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_template = """ class Test(object): @cl...
method)
added
86c9b68f4ab35c15b4ec7bf2b536c6887564643bdb70d253359a889c3771fa71
assert_*|test_magic_generator|import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_template = """ class Test(o...
null
null
null
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
67
4
assert_*
test_asserts_wrong_count
import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_with_asserts = """ def function(): if some: ...
[TooManyAssertsViolation])
modified
ae947b5056a444cdabd3a9e6ebd48ddc320ceb191acc8b9e8029f0bba6b892c8
assert_*|test_asserts_wrong_count|import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_with_asserts = """ def fu...
[TooManyAssertsViolation])
65
4
wemake-services/wemake-python-styleguide
train
562
5bfdbddc3b47c9089a9f3dc8fe096b346a309dd1
train
tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
68
4
assert_*
test_asserts_wrong_count
import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_with_asserts = """ def function(): if some: ...
option_values.max_asserts)
modified
9ee27a841d3c6c0ab744f6a081c12868a8565556a0083011799428f064b5401e
assert_*|test_asserts_wrong_count|import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_with_asserts = """ def fu...
option_values.max_asserts)
66
4
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
332
12
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
modified
26b8b964251107842320003c33a4347107396913a324ae633c2add8890b1c7c2
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors
331
12
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
335
8
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
modified
879375bacee6a28bde5798fded419440456937b1e47820b0e90b76b7205eb8d3
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors
334
8
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
345
4
assert
test_codes
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_violations)
modified
2cf8546a4552a0c111b96f11ac30d6973a8ee8e916187d70e458ec2b93b20723
assert|test_codes|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/lat...
len(all_violations)
344
4
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
430
4
assert
test_noqa_fixture_disabled_no_control
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_controlled_violations)
modified
833db9272cc1fa36b259a5e4f128c5ddd4dedf7700f0d1ab6311a8ad3c72a2a4
assert|test_noqa_fixture_disabled_no_control|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-pytho...
len(all_controlled_violations)
429
4
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_visitors/test_ast/test_classes/test_wrong_empty_lines_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_wrong_empty_lines_count.py
140
4
assert_*
test_wrong
"""Test method contain only allowed empty lines count.""" import pytest from wemake_python_styleguide.violations.best_practices import ( WrongEmptyLinesCountViolation, ) from wemake_python_styleguide.visitors.ast.function_empty_lines import ( WrongEmptyLinesCountVisitor, ) class_with_wrong_method = """ class ...
[WrongEmptyLinesCountViolation])
added
1b2935fef08d3d9c1a78758a1fd5edf2cb4e5e162df61aa42e117487d0a6579a
assert_*|test_wrong|"""Test method contain only allowed empty lines count.""" import pytest from wemake_python_styleguide.violations.best_practices import ( WrongEmptyLinesCountViolation, ) from wemake_python_styleguide.visitors.ast.function_empty_lines import ( WrongEmptyLinesCountVisitor, ) class_with_wrong_method = ...
null
null
null
wemake-services/wemake-python-styleguide
train
563
4ca670e690ecf048a9b83c8465756f900767bbee
train
tests/test_visitors/test_ast/test_classes/test_wrong_empty_lines_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_wrong_empty_lines_count.py
181
4
assert_*
test_zero_option
"""Test method contain only allowed empty lines count.""" import pytest from wemake_python_styleguide.violations.best_practices import ( WrongEmptyLinesCountViolation, ) from wemake_python_styleguide.visitors.ast.function_empty_lines import ( WrongEmptyLinesCountVisitor, ) class_with_wrong_method = """ class ...
[WrongEmptyLinesCountViolation])
added
38ba217600271ac5a12e0e28fde34b0afa690261db6f0f7b5629164ab774db04
assert_*|test_zero_option|"""Test method contain only allowed empty lines count.""" import pytest from wemake_python_styleguide.violations.best_practices import ( WrongEmptyLinesCountViolation, ) from wemake_python_styleguide.visitors.ast.function_empty_lines import ( WrongEmptyLinesCountVisitor, ) class_with_wrong_met...
null
null
null
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
345
12
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
added
b91ad8cd7918b4fe465fdb379f68fdfcf43d4a08c73d265b9f399d9dfbfe4ce0
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
null
null
null
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
348
8
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
added
709d324a5ede1042b1d1d10d0dc82d69eda60f0c2f877fbeaab042a90a63ce43
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
null
null
null
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
358
4
assert
test_codes
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_violations)
added
5a8e35e9d02b947e7098eb5cf8b2b7b8a3063d53a00c17331aefce62b6d6431d
assert|test_codes|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/lat...
null
null
null
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
449
4
assert
test_noqa_fixture_disabled_no_control
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_controlled_violations)
added
f4a97ec81b70f29f7cceff33d7478c200f492f7df9911d7adaa5b3a9a6ec81dd
assert|test_noqa_fixture_disabled_no_control|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-pytho...
null
null
null
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
129
4
assert_*
test_raw_unused_variable_definition
from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming.variables import ( UnusedVariableDefinitionVisitor, ) module_context = '{0}' function_context = """ def function(): {0} """...
[UnusedVariableIsDefinedViolation])
modified
bab2c96379a2f501e228173d07bc7fcfbfb7efa09cf36bae60d027ab7d722dcb
assert_*|test_raw_unused_variable_definition|from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming.variables import ( UnusedVariableDefinitionVisitor, ) module_context = '{0}' function_cont...
[UnusedVariableIsDefinedViolation])
127
4
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
197
4
assert_*
test_protected_unused_variable_definition
from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming.variables import ( UnusedVariableDefinitionVisitor, ) module_context = '{0}' function_context = """ def function(): {0} """...
[UnusedVariableIsDefinedViolation])
modified
a65c5306bf738be1001e7cbcf6427f86d978881dac640028be72bb4d08cd7d53
assert_*|test_protected_unused_variable_definition|from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming.variables import ( UnusedVariableDefinitionVisitor, ) module_context = '{0}' functio...
[UnusedVariableIsDefinedViolation])
195
4
wemake-services/wemake-python-styleguide
train
564
7b34423eb3d4187c9c1ddf2840f748df8652dff2
train
tests/test_visitors/test_ast/test_naming/test_unused/test_variable_usages.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_unused/test_variable_usages.py
158
4
assert_*
test_wrong_variable_usage
import pytest from wemake_python_styleguide.compat.constants import PY310 from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.naming.validation import ( WrongNameVisitor, ) from wemake_python_styleguide.visitors.ast.naming.variabl...
[UnusedVariableIsUsedViolation])
added
5fb5288ef632be1bc458fc148a37d08bab9f3872d64d28db6d8e86df047e4644
assert_*|test_wrong_variable_usage|import pytest from wemake_python_styleguide.compat.constants import PY310 from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.naming.validation import ( WrongNameVisitor, ) from wemake_python_styleguide.v...
null
null
null
wemake-services/wemake-python-styleguide
train
565
a9fba6c9c2cd29c90e82f86c3814cbc25bf4bfbf
train
tests/test_options/test_option_values/test_i_control_code.py
train
wemake-services/wemake-python-styleguide:tests/test_options/test_option_values/test_i_control_code.py
20
4
assert
test_parsing_i_control_code
""" This is a regression test for the argument parsing issue for boolean args. .. versionadded:: 0.13.0 See also: - https://github.com/wemake-services/wemake-python-styleguide/issues/966 - https://stackoverflow.com/a/15008806/4842742 """ def test_parsing_i_control_code(option_parser): """Ensures that `...
True
added
0fabd0367f52cd25e7eba03860211cbabc240ed09d586fff42ee2aa9deff9412
assert|test_parsing_i_control_code|""" This is a regression test for the argument parsing issue for boolean args. .. versionadded:: 0.13.0 See also: - https://github.com/wemake-services/wemake-python-styleguide/issues/966 - https://stackoverflow.com/a/15008806/4842742 """ def test_parsing_i_control_code(option_parser):...
null
null
null
wemake-services/wemake-python-styleguide
train
565
a9fba6c9c2cd29c90e82f86c3814cbc25bf4bfbf
train
tests/test_options/test_option_values/test_i_control_code.py
train
wemake-services/wemake-python-styleguide:tests/test_options/test_option_values/test_i_control_code.py
30
4
assert
test_parsing_i_dont_control_code
""" This is a regression test for the argument parsing issue for boolean args. .. versionadded:: 0.13.0 See also: - https://github.com/wemake-services/wemake-python-styleguide/issues/966 - https://stackoverflow.com/a/15008806/4842742 """ def test_parsing_i_control_code(option_parser): """Ensures that `...
False
added
d59f4c27adc3675fcc4615f2c487da096999ecb20bbf43205a4e0e942f3e10c0
assert|test_parsing_i_dont_control_code|""" This is a regression test for the argument parsing issue for boolean args. .. versionadded:: 0.13.0 See also: - https://github.com/wemake-services/wemake-python-styleguide/issues/966 - https://stackoverflow.com/a/15008806/4842742 """ def test_parsing_i_control_code(option_par...
null
null
null
wemake-services/wemake-python-styleguide
train
565
a9fba6c9c2cd29c90e82f86c3814cbc25bf4bfbf
train
tests/test_version.py
train
wemake-services/wemake-python-styleguide:tests/test_version.py
18
4
assert
test_call_flake8_version
import subprocess from wemake_python_styleguide.version import pkg_name, pkg_version def test_call_flake8_version(): """Checks that module is registered and visible in the meta data.""" output_text = subprocess.check_output( ['flake8', '--version'], stderr=subprocess.STDOUT, universal...
pkg_name in output_text or pkg_name.replace('_', '-') in output_text
modified
5c2c9adbeb4c31f8a1e9100c87697ebc25e28b0219dd172da2fef4e51a4cd7a0
assert|test_call_flake8_version|import subprocess from wemake_python_styleguide.version import pkg_name, pkg_version def test_call_flake8_version(): """Checks that module is registered and visible in the meta data.""" output_text = subprocess.check_output( ['flake8', '--version'], stderr=subprocess.STDOUT, universal_ne...
output_text
19
4
wemake-services/wemake-python-styleguide
train
565
a9fba6c9c2cd29c90e82f86c3814cbc25bf4bfbf
train
tests/test_version.py
train
wemake-services/wemake-python-styleguide:tests/test_version.py
19
4
assert
test_call_flake8_version
import subprocess from wemake_python_styleguide.version import pkg_name, pkg_version def test_call_flake8_version(): """Checks that module is registered and visible in the meta data.""" output_text = subprocess.check_output( ['flake8', '--version'], stderr=subprocess.STDOUT, universal...
output_text
modified
2b06706e4921c14757f222e4050d4ddfd424ab346d77fdae86a5e2ddd18a4ce9
assert|test_call_flake8_version|import subprocess from wemake_python_styleguide.version import pkg_name, pkg_version def test_call_flake8_version(): """Checks that module is registered and visible in the meta data.""" output_text = subprocess.check_output( ['flake8', '--version'], stderr=subprocess.STDOUT, universal_ne...
output_text
18
4
wemake-services/wemake-python-styleguide
train
566
f119ba9b7f460478cc16279551594d80c2988769
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
346
12
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors
modified
3d7167c6399e5907d20d2a30a07e136ca94203be40fb8272dc621d8d33ab9757
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors
345
12
wemake-services/wemake-python-styleguide
train
566
f119ba9b7f460478cc16279551594d80c2988769
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
350
8
assert
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
errors.get(found_error)
modified
1f8ef63ed3344d4b6f69f0d8a9bd78068690e39861c14e49dcd82db38ab37ed8
assert||""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/...
errors.get(found_error)
349
8
wemake-services/wemake-python-styleguide
train
566
f119ba9b7f460478cc16279551594d80c2988769
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
359
4
assert
test_codes
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_violations)
modified
01ab77e28dcf9c0178aba8714c589f574e5521186c67c4b0095ed200ea9347c5
assert|test_codes|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/lat...
len(all_violations)
358
4
wemake-services/wemake-python-styleguide
train
566
f119ba9b7f460478cc16279551594d80c2988769
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
450
4
assert
test_noqa_fixture_disabled_no_control
""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-python-styleguide.rtfd.io/en/latest/pages/api/c...
len(all_controlled_violations)
modified
0ffabea6e5b7689e0b0481cc48eb433f38746eecededb0358c3e089609881b3f
assert|test_noqa_fixture_disabled_no_control|""" Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works See docs: https://wemake-pytho...
len(all_controlled_violations)
449
4
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api/tests/test_api.py
train
whyisdifficult/jiratui:src/jiratui/api/tests/test_api.py
2,023
4
assert
test_update_issue
import json from unittest.mock import Mock, patch import httpx import pytest import respx from jiratui.api.api import JiraAPI from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy from jiratui.utils.tests import get_url_pattern, load_json_response @pytest.mark.asynci...
request_url
added
0911c7887a7cc702b333565898d6902c024da4fecb360ad3e18706e47355cc39
assert|test_update_issue|import json from unittest.mock import Mock, patch import httpx import pytest import respx from jiratui.api.api import JiraAPI from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy from jiratui.utils.tests import get_url_pattern, load_json_respons...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api/tests/test_utils.py
train
whyisdifficult/jiratui:src/jiratui/api/tests/test_utils.py
27
4
assert
test_build_issue_search_jql_with_parameters
from datetime import datetime from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy def test_build_issue_search_jql(): # WHEN result = build_issue_search_jql() # THEN assert result == '' def test_build_issue_search_jql_with_parameters(): # WHEN ...
'project = P1 and created >= "2025-12-01" and created <= "2025-12-02" and updated >= "2025-12-03" and updated <= "2025-12-04" and status = "1" and assignee = "1" and type = 2'
added
46f306319779b3dba8f9d88fc3e8dd920793c01b3333909d547e7375f89d6f4e
assert|test_build_issue_search_jql_with_parameters|from datetime import datetime from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy def test_build_issue_search_jql(): # WHEN result = build_issue_search_jql() # THEN assert result == '' def test_build_issue_search_jql_w...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api/tests/test_utils.py
train
whyisdifficult/jiratui:src/jiratui/api/tests/test_utils.py
46
4
assert
test_build_issue_search_jql_with_parameters_and_jql_query
from datetime import datetime from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy def test_build_issue_search_jql(): # WHEN result = build_issue_search_jql() # THEN assert result == '' def test_build_issue_search_jql_with_parameters(): # WHEN ...
'project = P1 and created >= "2025-12-01" and created <= "2025-12-02" and updated >= "2025-12-03" and updated <= "2025-12-04" and status = "1" and assignee = "1" and type = 2 and q=5'
added
c1eef7fce0f8bdd7b872d0712b19a4ac5eaf6154cf70a1d9813baa790159f3d2
assert|test_build_issue_search_jql_with_parameters_and_jql_query|from datetime import datetime from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy def test_build_issue_search_jql(): # WHEN result = build_issue_search_jql() # THEN assert result == '' def test_build_issu...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api_controller/tests/test_controller.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_controller.py
1,684
4
assert
test_create_issue_remote_link_without_title
from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseException, ServiceUnavailableExceptio...
None
added
02a33917602715da294e5daea0e364cca700da37ab3889202a2b42778a1dab17
assert|test_create_issue_remote_link_without_title|from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResp...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
124
4
assert
test_build_issue_instance
from datetime import datetime from unittest.mock import patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.models import ( IssueComment, IssuePriority, IssueStatus, IssueType, JiraIssue, ...
isinstance(issue, JiraIssue)
added
f6268d648c0cc633d9c2ef1c7d503909a07558feaf5fe3b66ddb2c802fbf2e64
assert|test_build_issue_instance|from datetime import datetime from unittest.mock import patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.models import ( IssueComment, IssuePriority, IssueStatus, IssueType, JiraIssue, JiraU...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
212
4
assert
test_build_issue_instance_with_more_details
from datetime import datetime from unittest.mock import patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.models import ( IssueComment, IssuePriority, IssueStatus, IssueType, JiraIssue, ...
isinstance(issue, JiraIssue)
added
c7c713dac25a112fc623626d07b85a5765680f75ea226b7b095744f8365cd9b0
assert|test_build_issue_instance_with_more_details|from datetime import datetime from unittest.mock import patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.models import ( IssueComment, IssuePriority, IssueStatus, IssueType...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/tests/test_app.py
train
whyisdifficult/jiratui:src/jiratui/tests/test_app.py
53
8
assert
test_application_title_with_custom_title
from unittest.mock import AsyncMock, MagicMock, patch import pytest from jiratui.api_controller.controller import APIControllerResponse from jiratui.app import JiraApp from jiratui.models import JiraServerInfo @pytest.fixture() def app(config_for_testing, jira_api_controller) -> JiraApp: app = JiraApp(config_fo...
'Hello World!'
added
ff49884ec39a2d18ce896958f3ee08773e39fca509daca35d29bd0a6c4717143
assert|test_application_title_with_custom_title|from unittest.mock import AsyncMock, MagicMock, patch import pytest from jiratui.api_controller.controller import APIControllerResponse from jiratui.app import JiraApp from jiratui.models import JiraServerInfo @pytest.fixture() def app(config_for_testing, jira_api_control...
null
null
null
whyisdifficult/jiratui
train
0
168b4a18e515fc2a3b1c188a6b744bc1a5855684
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
426
8
assert
test_fetch_users_without_project_selection_with_users_group_id_user_listing_error_using_project_workflow
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.models import IssueStatus, IssueType, JiraUser, Project f...
[('', Select.BLANK)]
added
5caa4d804929f7234647eb388517e607ddb6cbb0024928251cffa922b0a8ce5c
assert|test_fetch_users_without_project_selection_with_users_group_id_user_listing_error_using_project_workflow|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerR...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/api/tests/test_api.py
train
whyisdifficult/jiratui:src/jiratui/api/tests/test_api.py
1,464
4
assert
test_get_comments_with_parameters
import json from unittest.mock import Mock, patch import httpx import pytest import respx from jiratui.api.api import JiraAPI from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy from jiratui.utils.test_utilities import get_url_pattern, load_json_response @pytest.ma...
'/rest/api/3/issue/1/comment'
modified
7afe7222a1789dab99d74959c564a44ca6ede7cbd6441f107cba3cf404c7753b
assert|test_get_comments_with_parameters|import json from unittest.mock import Mock, patch import httpx import pytest import respx from jiratui.api.api import JiraAPI from jiratui.api.utils import build_issue_search_jql from jiratui.models import WorkItemsSearchOrderBy from jiratui.utils.test_utilities import get_url_p...
'/rest/api/3/issue/1/comment'
1,464
4
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/api_controller/tests/test_controller.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_controller.py
1,922
9
pytest.raises
test_update_issue_with_missing_summary
from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseException, ServiceUnavailableExceptio...
ValidationError, match='The summary field can not be empty.')
added
8b20dda7c56649bd8f6d62b022a454145d6d6d116da174de0d9b82fe07f6e51c
pytest.raises|test_update_issue_with_missing_summary|from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidRe...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
428
4
assert
test_build_related_work_items_fail_creating_inward_issue
from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachment, IssueComme...
[ RelatedJiraIssue( id='10033', key='SCRUM-9', summary='(Sample) Add Login Rate Limiting', status=IssueStatus( name='In Progress', id='10001', ), issue_type=IssueType(id='10003', name='Task', scope_project=None), link_type='relates to', relation_type='outward', priority=IssuePriority(id='1', name='Highest'), ) ]
added
051f99fe796cce3c9dd307d4843dc3ffff284eaeeb372df711d843fdd099a415
assert|test_build_related_work_items_fail_creating_inward_issue|from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jira...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/tests/test_widgets.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_widgets.py
24
8
assert
test_issue_summary_field
from unittest.mock import MagicMock import pytest from jiratui.app import JiraApp from jiratui.widgets.work_item_details.details import IssueSummaryField @pytest.fixture() def app(config_for_testing, jira_api_controller) -> JiraApp: app = JiraApp(config_for_testing) app.api = jira_api_controller app._se...
expected_value
added
08752c502873d2039a7ee9f53ba29331f113baaab03fcf266a86f4e48c9fdf50
assert|test_issue_summary_field|from unittest.mock import MagicMock import pytest from jiratui.app import JiraApp from jiratui.widgets.work_item_details.details import IssueSummaryField @pytest.fixture() def app(config_for_testing, jira_api_controller) -> JiraApp: app = JiraApp(config_for_testing) app.api = jira_api_co...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
train
whyisdifficult/jiratui:src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
102
4
assert
test_create_node_from_dict_without_type
from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHeaderPresent...
None
added
dce1394c1a8b9f56fd23448560d39e300768e33150cb21ca3bb78394ca8c6501
assert|test_create_node_from_dict_without_type|from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, Table...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/utils/tests/test_styling.py
train
whyisdifficult/jiratui:src/jiratui/utils/tests/test_styling.py
18
4
assert
test_get_style_for_work_item_status
import pytest from jiratui.utils.styling import get_style_for_work_item_status, get_style_for_work_item_type @pytest.mark.parametrize( 'status_name, expected_result', [ ('done', 'green'), ('in review', 'dark_olive_green'), ('in progress', 'blue'), ('to do', 'yellow'), ...
expected_result
added
c55b2c0e9c2cbaf16cf8eeee3fdc3b34188da8811e79549ee364e0446c3dca62
assert|test_get_style_for_work_item_status|import pytest from jiratui.utils.styling import get_style_for_work_item_status, get_style_for_work_item_type @pytest.mark.parametrize( 'status_name, expected_result', [ ('done', 'green'), ('in review', 'dark_olive_green'), ('in progress', 'blue'), ('to do', 'yellow'), ('other'...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/utils/tests/test_work_item_updates.py
train
whyisdifficult/jiratui:src/jiratui/utils/tests/test_work_item_updates.py
22
4
assert
test_work_item_priority_has_changed
import pytest from jiratui.models import IssuePriority, JiraUser from jiratui.utils.work_item_updates import ( work_item_assignee_has_changed, work_item_priority_has_changed, ) @pytest.mark.parametrize( 'current_priority, target_priority, expected_result', [ (None, None, False), (None...
expected_result
added
24b27d48cc1a22d05ccc1f00817e41c7facf79739894086db51b949da1869d2c
assert|test_work_item_priority_has_changed|import pytest from jiratui.models import IssuePriority, JiraUser from jiratui.utils.work_item_updates import ( work_item_assignee_has_changed, work_item_priority_has_changed, ) @pytest.mark.parametrize( 'current_priority, target_priority, expected_result', [ (None, None, False...
null
null
null
whyisdifficult/jiratui
train
1
3bf75203aee1c85365d6d94713088abbcc7911d3
train
src/jiratui/utils/tests/test_work_item_updates.py
train
whyisdifficult/jiratui:src/jiratui/utils/tests/test_work_item_updates.py
36
4
assert
test_work_item_assignee_has_changed
import pytest from jiratui.models import IssuePriority, JiraUser from jiratui.utils.work_item_updates import ( work_item_assignee_has_changed, work_item_priority_has_changed, ) @pytest.mark.parametrize( 'current_priority, target_priority, expected_result', [ (None, None, False), (None...
expected_result
added
17697e116774a3d48d119f52c50ebb46d6bc309cfbbbe58afb25d50fc3b5e513
assert|test_work_item_assignee_has_changed|import pytest from jiratui.models import IssuePriority, JiraUser from jiratui.utils.work_item_updates import ( work_item_assignee_has_changed, work_item_priority_has_changed, ) @pytest.mark.parametrize( 'current_priority, target_priority, expected_result', [ (None, None, False...
null
null
null
whyisdifficult/jiratui
train
2
ec172c212c31c2529241e156b5b0a046b1cb0150
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
136
8
assert
test_fetch_users_without_project_selection_without_jira_user_group_id
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.models import IssueStatus, IssueType, JiraUser, Project f...
None
modified
9f5a8e8402c6d4005d29c02ffc1e0de8abaf90782b6759f2c5b5b639444e3882
assert|test_fetch_users_without_project_selection_without_jira_user_group_id|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import Jir...
None
134
8
whyisdifficult/jiratui
train
2
ec172c212c31c2529241e156b5b0a046b1cb0150
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
274
8
assert
test_fetch_users_with_project_selection_search_users_error
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.models import IssueStatus, IssueType, JiraUser, Project f...
'P1'
modified
a80b6393db69ba934bcb184e4f40efff633a4cc661514f96e42b5fe5326df3f4
assert|test_fetch_users_with_project_selection_search_users_error|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from j...
'P1'
272
8
whyisdifficult/jiratui
train
2
ec172c212c31c2529241e156b5b0a046b1cb0150
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
327
8
assert
test_fetch_users_without_project_selection_with_users_group_id_without_using_project_workflow
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.models import IssueStatus, IssueType, JiraUser, Project f...
[ ('', Select.BLANK), ('Bart Simpson', '12345'), ]
modified
1b025957a971182f07da271b235a1f8576e3125ac8fced67f8c6b1b912648a37
assert|test_fetch_users_without_project_selection_with_users_group_id_without_using_project_workflow|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse fro...
[ ('', Select.BLANK), ('Bart Simpson', '12345'), ]
325
8
whyisdifficult/jiratui
train
2
ec172c212c31c2529241e156b5b0a046b1cb0150
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
368
8
assert
test_fetch_users_without_project_selection_with_users_group_id_using_project_workflow
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.models import IssueStatus, IssueType, JiraUser, Project f...
[ ('', Select.BLANK), ]
modified
60c57f770abdaf292883e60ed030eea1cc129b89104c4c2aa746bd41e4314df5
assert|test_fetch_users_without_project_selection_with_users_group_id_using_project_workflow|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratu...
[ ('', Select.BLANK), ]
366
8
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/api_controller/tests/test_controller.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_controller.py
1,490
4
assert
test_search_issues_with_next_page
from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseException, ServiceUnavailableExceptio...
't1'
modified
f32e6b568658ff9ceb53bc3d45a10df62082f9e9b7329a0a089e0fe7d6d0fd00
assert|test_search_issues_with_next_page|from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseExcept...
't1'
1,488
4
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/api_controller/tests/test_controller.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_controller.py
1,594
4
assert
test_count_issues_with_criteria
from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseException, ServiceUnavailableExceptio...
'Failed to count the number of work items: some error'
modified
141f4ae2a38dbc65c2e593da5f99945d3bf9fc7d5441d6f3247bc96f0f9f2597
assert|test_count_issues_with_criteria|from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseExceptio...
'Failed to count the number of work items: some error'
1,592
4
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/api_controller/tests/test_controller.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_controller.py
1,910
9
pytest.raises
test_update_issue_with_missing_edit_meta_fields
from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( ServiceInvalidResponseException, ServiceUnavailableExceptio...
UpdateWorkItemException, match='The selected work item does not include the required fields metadata.')
modified
972b62f46ee5fb680adaaccac23e78e5b9520fb86ffb5fcc32646e28dba3a4ab
pytest.raises|test_update_issue_with_missing_edit_meta_fields|from datetime import datetime, timedelta from unittest.mock import Mock, call, patch import pytest from jiratui.api.api import JiraAPI from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.exceptions import ( Service...
UpdateWorkItemException, match='The selected work item does not include the required fields metadata.')
1,908
9
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
123
8
assert
test_fetch_projects
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.config import ApplicationConfiguration from jiratui.model...
None
added
b894960339ee79c86382f990d4d241e5cdc9e4aa308155d8f65db358d266173a
assert|test_fetch_projects|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.config import ApplicationConfigu...
null
null
null
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/tests/test_main_screen.py
test
whyisdifficult/jiratui:src/jiratui/tests/test_main_screen.py
654
8
assert
test_select_project
from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.config import ApplicationConfiguration from jiratui.model...
[('', Select.BLANK)]
modified
7ca6d495db6724e224f83524d2198a7f0efa2336568ea96bb41830022d75f5cc
assert|test_select_project|from typing import cast from unittest.mock import AsyncMock, MagicMock, Mock, patch import pytest from textual.widgets import Select from jiratui.api_controller.controller import APIController, APIControllerResponse from jiratui.app import JiraApp from jiratui.config import ApplicationConfigu...
[('', Select.BLANK)]
654
8
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
train
whyisdifficult/jiratui:src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
67
4
assert
test_adf2md_with_list
from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHeaderPresent...
'hello world!'
added
a45190429bba2a1bfd99e9ef3d9789b4cca290104974244e853bd567802b2a61
assert|test_adf2md_with_list|from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHeaderPresenter, T...
null
null
null
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
train
whyisdifficult/jiratui:src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
462
4
assert
test_create_node_presenter_without_children
from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHeaderPresent...
isinstance(np.node, DateNode)
added
3296dc078d69cb2f796e67652eb09c21246e9ba13f4a50880374e1aec42895c0
assert|test_create_node_presenter_without_children|from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, T...
null
null
null
whyisdifficult/jiratui
train
3
914415aa5f5581b7b9690c6a29fb5fcea7ae7b57
train
src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
train
whyisdifficult/jiratui:src/jiratui/utils/adf2md/tests/test_adf_to_markdown.py
991
4
assert
test_create_node_presenter_from_node
from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHeaderPresent...
isinstance(result, expected_presenter)
added
1600d84a17da08f917dfe400cb5e3586af084f9baa5cce5c566aa98debfdc904
assert|test_create_node_presenter_from_node|from unittest.mock import Mock, patch import pytest from jiratui.utils.adf2md.adf2md import adf2md from jiratui.utils.adf2md.markdown import ( BulletListPresenter, DocPresenter, HardBreakPresenter, ListItemPresenter, NodePresenter, PanelPresenter, TableCellPresenter, TableHea...
null
null
null
whyisdifficult/jiratui
train
4
60e874563377b5edc26730d8bcd2bb2181ba54dc
train
src/jiratui/widgets/work_item_details/tests/test_issue_details_widget.py
train
whyisdifficult/jiratui:src/jiratui/widgets/work_item_details/tests/test_issue_details_widget.py
67
4
assert
test_generate_assignable_users_for_dropdown
import pytest from jiratui.models import JiraUser from jiratui.widgets.work_item_details.details import IssueDetailsWidget @pytest.mark.parametrize( 'users, current_assignee, default_assignable_users, expected_entries', [ ( [ JiraUser(display_name='Bart', account_id='1', a...
expected_entries
added
c4b163f9c376a6d849d04a2444d5f4f87e0f01d5735aa9cd958085f3dd3e68f5
assert|test_generate_assignable_users_for_dropdown|import pytest from jiratui.models import JiraUser from jiratui.widgets.work_item_details.details import IssueDetailsWidget @pytest.mark.parametrize( 'users, current_assignee, default_assignable_users, expected_entries', [ ( [ JiraUser(display_name='Bart', account_id='1...
null
null
null
whyisdifficult/jiratui
train
5
0adf5e387d2699a1c7871348a0228bf0822fd629
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
140
4
assert
test_build_comments_with_error
from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachment, IssueComme...
[ IssueComment( id='2', author=JiraUser( account_id='3', active=True, display_name='Homer Simpson', email='homer@simpson.com', ), created=datetime(2025, 12, 10, 18, 0, 00), updated=datetime(2025, 12, 10, 18, 1, 00), update_author=JiraUser( account_id='4', active=True, display_name='Maggie Simpson', email='maggie@simpso...
added
4d917cd0de9c6f71d3f90719b4f654f64a039e68f06242675df911b764be97d6
assert|test_build_comments_with_error|from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attach...
null
null
null
whyisdifficult/jiratui
train
5
0adf5e387d2699a1c7871348a0228bf0822fd629
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
177
4
assert
test_build_issue_instance
from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachment, IssueComme...
JiraIssue( id='10002', key='SCRUM-10', summary='(Sample) Set Up Payment Logging', status=IssueStatus( name='In Progress', id='10001', ), project=Project(id='10000', name='Test Project', key='SCRUM'), created=datetime(2025, 7, 5, 14, 34, 59), updated=datetime(2025, 7, 14, 22, 33, 38), due_date=datetime(2025, 12, 31).dat...
added
9c299c3af0b469929c1f55a3120f2ea50415d6a6cf7e74b69cbabdf0c76eb432
assert|test_build_issue_instance|from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachment,...
null
null
null
whyisdifficult/jiratui
train
5
0adf5e387d2699a1c7871348a0228bf0822fd629
train
src/jiratui/api_controller/tests/test_factories.py
train
whyisdifficult/jiratui:src/jiratui/api_controller/tests/test_factories.py
393
4
assert
test_build_related_work_items
from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachment, IssueComme...
[ RelatedJiraIssue( id='10033', key='SCRUM-9', summary='(Sample) Add Login Rate Limiting', status=IssueStatus( name='In Progress', id='10001', ), issue_type=IssueType(id='10003', name='Task', scope_project=None), link_type='relates to', relation_type='outward', priority=IssuePriority(id='1', name='Highest'), ), Related...
added
4529ff7f27b50045d6ef042cf42a6c1dd48db4ddd28b7a3c32617a79fb18e1c0
assert|test_build_related_work_items|from datetime import datetime from unittest.mock import Mock, patch import pytest from jiratui.api_controller.factories import ( build_comments, build_issue_instance, build_related_work_items, ) from jiratui.config import ApplicationConfiguration from jiratui.models import ( Attachm...
null
null
null