Skip to content

Commit

Permalink
style: ignore typecheck on from_ attribute in more places
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <[email protected]>
  • Loading branch information
Flix6x committed Dec 6, 2024
1 parent dfa765e commit 424f637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/common/transition_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test__from_json__happy_path_min(self):

# Assert
self.assertEqual(transition.id, "2bdec96b-be3b-4ba9-afa0-c4a0632cced3")
self.assertEqual(transition.from_, "2bdec96b-be3b-4ba9-afa0-c4a0632cced2")
self.assertEqual(transition.from_, "2bdec96b-be3b-4ba9-afa0-c4a0632cced2") # type: ignore
self.assertEqual(transition.to, "2bdec96b-be3b-4ba9-afa0-c4a0632cced1")
self.assertEqual(transition.start_timers, [])
self.assertEqual(transition.blocking_timers, [])
Expand Down Expand Up @@ -132,12 +132,12 @@ def test__to_json__happy_path(self):
def test__to_json__value_validation_error_neg_duration(self):
# Arrange/ Act / Assert
with self.assertRaises(S2ValidationError):
Transition(
Transition( # type: ignore
id="2bdec96b-be3b-4ba9-afa0-c4a0632cced3",
from_="2bdec96b-be3b-4ba9-afa0-c4a0632cced2",
from_="2bdec96b-be3b-4ba9-afa0-c4a0632cced2", # type: ignore
to="2bdec96b-be3b-4ba9-afa0-c4a0632cced1",
start_timers=[],
blocking_timers=[],
transition_duration=Duration(__root__=-5000),
abnormal_condition_only=False,
)
) # type: ignore

0 comments on commit 424f637

Please sign in to comment.