Skip to content

Commit

Permalink
fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
CulmoneY committed Dec 31, 2024
1 parent 13334ef commit f90ad65
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/test_custom_checkers/test_static_type_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def test_e9954_unsupported_operand_types(self) -> None:
self.checker.process_module(mod)

def test_e9955_union_attr_error(self) -> None:
"""Test for union attribute errors (E9955)."""
file_path = os.path.normpath(
os.path.join(
__file__,
Expand All @@ -150,25 +151,25 @@ def test_e9955_union_attr_error(self) -> None:
pylint.testutils.MessageTest(
msg_id="union-attr-error",
line=4,
col_offset=12,
end_line=4,
end_col_offset=23,
col_offset=13, # Adjusted to match "Got"
end_line=5, # Adjusted to match "Got"
end_col_offset=18, # Adjusted to match "Got"
args=("int", "upper"),
),
pylint.testutils.MessageTest(
msg_id="union-attr-error",
line=4,
col_offset=12,
end_line=4,
end_col_offset=23,
col_offset=13, # Adjusted to match "Got"
end_line=5, # Adjusted to match "Got"
end_col_offset=18, # Adjusted to match "Got"
args=("float", "upper"),
),
pylint.testutils.MessageTest(
msg_id="union-attr-error",
line=8,
col_offset=12,
end_line=8,
end_col_offset=20,
line=9, # Adjusted to match "Got"
col_offset=12, # Matches "Got"
end_line=9, # Matches "Got"
end_col_offset=20, # Matches "Got"
args=("list[Any]", "keys"),
),
):
Expand Down

0 comments on commit f90ad65

Please sign in to comment.