Commit 1b0944b
committed
fix: remove redundant identity check in file parameter test
- Replaced 'assert file_param is not None' with meaningful assertions
- Check file_param.description and hasattr for json_schema_extra
- Addresses SonarCloud quality issue S5727: comparison to None should not be constant
- Improves test meaningfulness and code maintainability1 parent 41091a3 commit 1b0944b
File tree
1 file changed
+3
-2
lines changed- tests/functional/event_handler/_pydantic
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
0 commit comments