Skip to content

Commit

Permalink
keep mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
noooop committed Sep 30, 2024
1 parent a4de8f5 commit 97e7e5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/wde/core/processor/test_input_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ def test_validation_error(request_id):
inputs = {"foo": "bar"}
input_processor(request_id, inputs)

# mypy: disable-error-code=assignment

with pytest.raises(ValidationError):
inputs = 0
input_processor(request_id, inputs) # type: ignore
input_processor(request_id, inputs)

with pytest.raises(ValidationError):
inputs = 0.0
input_processor(request_id, inputs) # type: ignore
input_processor(request_id, inputs)

# mypy: enable-error-code=assignment

0 comments on commit 97e7e5c

Please sign in to comment.