Commit 3fdb3cd
committed
fix: remove redundant identity check in AttributeError test
- Removed 'mock_body is not None and value is None' redundant condition
- Simplified test to directly test AttributeError handling scenario
- Addresses linter warning about identity check that will always be True
- Maintains same test coverage while improving code quality
- Follows proper make format && make pr workflow validation1 parent c16cd7f commit 3fdb3cd
File tree
1 file changed
+5
-6
lines changed- tests/functional/event_handler/_pydantic
1 file changed
+5
-6
lines changedLines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
435 | 434 | | |
436 | 435 | | |
437 | 436 | | |
0 commit comments