Commit 87684e4
committed
Fix mocking of
The `md.preprocessors` attribute wasn't being mocked correctly and
returned a new mock object instead of the custom mock object we wanted.
The tests passed anyway, because the only thing that was used was the
`highlight` return value, which evaluates to `True` when it is a new
mock object instead of a proper `bool` value, but now that the type of
the preprocessor is checked to be able to call `highlight`, the tests
failed.
Signed-off-by: Leandro Lucarella <[email protected]>md.preprocessors in tests1 parent 7cddc88 commit 87684e4
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments