Commit 7d45874
test: address Copilot review feedback on test hygiene
- test_migration_processor_extras.py: replace MagicMock() + `del obj.dict`
with a small dummy class exposing only `model_dump` so the v2 branch is
exercised without depending on Mock's deletion semantics.
- test_sk_logic_base.py: capture the original `libs.base.SKBase.SKBaseModel`
before patching with our extra-allow stub and restore it in
`teardown_module` so the patch no longer leaks across test modules.
Both fixes are confined to test files. Coverage remains above the 82% gate
(backend 93.28%, processor 87.44%).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5457838 commit 7d45874
2 files changed
Lines changed: 27 additions & 4 deletions
File tree
- src
- backend-api/src/tests/base
- processor/src/tests/unit/steps
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
41 | 63 | | |
42 | 64 | | |
43 | 65 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments