Commit f3a0987
committed
Fix remaining 4 Codacy findings on PR #97
- pyflakes F821 token_leak_detector:196 — re-added the typing.Optional
import that autoflake stripped before my _har_body_text refactor
introduced it
- pyflakes F811 test_download_verify:271 — removed duplicate
`from pypdf import PdfWriter` (already imported at line 256)
- pyflakes F841 test_sri_verify:86 — replaced the unused `_tag = ...`
binding with a comment explaining the alg='not' edge case the test
doesn't directly assert against
- semgrep dangerous-subprocess-use test_test_auto_repair:51 — added
`# nosemgrep` to the second MagicMock(return_value=CompletedProcess(...))
fixture (the first one already had it)1 parent b7f5b18 commit f3a0987
4 files changed
Lines changed: 8 additions & 9 deletions
File tree
- je_web_runner/utils/token_leak_detector
- test/unit_test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments