Commit c68f5c9
committed
fix: Import FoundBy from correct module in tests
Fixed Pydantic validation error by importing FoundBy from modules.base
instead of models.finding_schema. The ModuleFinding class in base.py
uses its own FoundBy definition, and Pydantic requires the exact same
class instance for validation to pass.
This resolves the validation errors:
- test_cargo_fuzzer.py::test_create_finding_from_crash
- test_atheris_fuzzer.py::test_create_crash_finding1 parent 8cd8228 commit c68f5c9
File tree
2 files changed
+2
-2
lines changed- backend/tests/unit/test_modules
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments